Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: GS Newsgroups: comp.lang.basic.visual.misc Subject: Re: Trying to get author / title of a DOC file in VB2005 Date: Mon, 25 Apr 2011 16:48:08 -0400 Organization: A noiseless patient Spider Lines: 47 Message-ID: References: <6rvumrm3obrf.18ghpw0izr9tr.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15"; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 25 Apr 2011 20:45:54 +0000 (UTC) Injection-Info: mx03.eternal-september.org; posting-host="UVJBuiIZprDyxzUkJsiwfw"; logging-data="8791"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ajXPVP9fi/idMjXH6wQzk" X-Antivirus-Status: Clean X-Newsreader: MesNews/1.08.03.00-gb X-Antivirus: avast! (VPS 110425-0, 04/25/2011), Outbound message Cancel-Lock: sha1:icf77IBkttnFoqKLZxFOxwfkayQ= X-ICQ: 543516788 Xref: x330-a1.tempe.blueboxinc.net comp.lang.basic.visual.misc:111 Steve Rindsberg formulated on Monday : >> The retrieving and editing this information without automation has >> typically* been done via the OLE Compound document interfaces - >> IPropertyStorage and IPropertySetStorage. >> for example: >> "How To Read Compound Document Properties Directly with VC++" >> http://support.microsoft.com/kb/q186898/ >> >> Another way of doing this ... >> "The Dsofile.dll files lets you edit Office document properties when >> you do not have Office installed" >> http://support.microsoft.com/kb/q224351/ >> >> A little research online with those intefaces as keywords should >> produce several VB.Net examples (or more likely C# solutions which you >> can convert or employ directly within your VB.Net application.) >> >> hth >> >> -ralph >> [* there are also several schemes to mine this 'meta-information' >> directly from the binary file, but such 'hacks' are usually very >> fragile and always version dependent. Files stored in the new XML >> formats (eg. docx) can also be mined as you might any ASCII file.] > > Or rather, the XML and other data in DOCX files can be mined once you extract > them from the ZIP container. All of the Office *.*X files are ZIP files. > > I'm guesing that DSOFile doesn't know what to do with these. Is that > correct? AFAIK, Dsofile reads/writes the 'properties' that list on the "Details" tab of the file's 'Properties' dialog. These used to be found on the "Summary" tab on files stored on NTFS volumes prior to Win6.x arriving. The newer versions no longer support NTFS SummaryProperties but I believe the newer version of Dsofile still works with the new file structure. The only change is the "Keywords" prop has been renamed "Tag", but using the old name still works for both. -- Garry Free usenet access at http://www.eternal-september.org ClassicVB Users Regroup! comp.lang.basic.visual.misc