Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #102

Re: Trying to get author / title of a DOC file in VB2005

From ralph <nt_consulting64@yahoo.net>
Newsgroups comp.lang.basic.visual.misc
Subject Re: Trying to get author / title of a DOC file in VB2005
Date 2011-04-24 13:42 -0500
Organization A noiseless patient Spider
Message-ID <a2q8r69itkcafeevjndgir6ri06eveb4p5@4ax.com> (permalink)
References <6rvumrm3obrf.18ghpw0izr9tr.dlg@40tude.net>

Show all headers | View raw


On Sun, 24 Apr 2011 12:24:01 -0500, AlJones <al@mywebhome.net> wrote:

>The title says it all, almost I want to be able to do this on a macine
>which may not have office installed. 
>I've spent last evening and most of the day so far perusing the web and
>most of what I've found has been vb6 or vba.
>If someone has the code to do that I'd sure appreciate it (okay, I'm lazy)
>-or-
>a specific reference in MSDN or from the web would also be appreciated.
>

First off, (and hopefully without starting a flame war <g>) this
newsgroup is visited and used mostly by users of the "Visual Basic
Development Platform" (VB) and not by users of the ".Net Framework",
thus you will likely get better and more responses from a .Net Forum.

[I don't use VB.Net myself, preferring VC++/CLI and C#, but the
following general background might help.]

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.]

Back to comp.lang.basic.visual.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Trying to get author / title of a DOC file in VB2005 AlJones <al@mywebhome.net> - 2011-04-24 12:24 -0500
  Re: Trying to get author / title of a DOC file in VB2005 ralph <nt_consulting64@yahoo.net> - 2011-04-24 13:42 -0500
    Re: Trying to get author / title of a DOC file in VB2005 ralph <nt_consulting64@yahoo.net> - 2011-04-24 13:45 -0500
    Re: Trying to get author / title of a DOC file in VB2005 AlJones <al@mywebhome.net> - 2011-04-24 14:17 -0500
      Re: Trying to get author / title of a DOC file in VB2005 ralph <nt_consulting64@yahoo.net> - 2011-04-24 15:33 -0500
      Re: Trying to get author / title of a DOC file in VB2005 "Mayayana" <mayayana@invalid.nospam> - 2011-04-24 23:22 -0400
    Re: Trying to get author / title of a DOC file in VB2005 Steve Rindsberg <steve@rdpslides.com> - 2011-04-25 15:57 -0400
      Re: Trying to get author / title of a DOC file in VB2005 GS <gs@somewhere.net> - 2011-04-25 16:48 -0400
        Re: Trying to get author / title of a DOC file in VB2005 GS <gs@somewhere.net> - 2011-04-25 16:49 -0400

csiph-web