473,324 Members | 2,370 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Document Data

Can anyone tell me how to retrieve the embedded document data (author, owner,
status, etc) from a Word file.

Thanks!

Steve
Nov 12 '05 #1
2 4694
From the Word MVP site here:
http://www.mvps.org/word/FAQs/MacrosVBA/DSOFile.htm

Using VBA, how can I get access to the Document Properties of a Word
file without opening the document?

Article contributed by Jonathan West
Microsoft makes an ActiveX DLL available called dsofile.dll, which
allows you to read & write the document properties of an Office file
without opening the file in a document editing window. To obtain it, go
to http://support.microsoft.com/?kbid=224351

The download includes the DLL itself, plus the source code for a small
VB5/VB6 project that demonstrates its use. While the VB code can't be
used unmodified in VBA, looking at it should give you a pretty good idea
of how to use the DLL.

In addition, you can download a template called ListProps.dot (by
clicking on the link) that will use dsofile to list all the Office
documents in a folder, including whichever of the built-in document
properties you want to have.

To run it, proceed as follows.

1.
Download and register dsofile.dll using regsvr32.

2.
Copy the ListProps template into your Word startup folder.

3.
Start Word. A new entry will appear in the Tools menu.

4.
Select the entry. In the dialog that appears, select the properties you
want to include in your list, select the folder you want to have listed,
and select the template you want to use as the document type for the
list.
ListProps then uses dsofile to open each file in turn, get the
properties, and puts the list into a table. Works with available
properties of Word, Excel & PowerPoint files.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Steve" <sa****@penn.com> wrote in message
news:u7*****************@newsread2.news.atl.earthl ink.net...
Can anyone tell me how to retrieve the embedded document data (author, owner, status, etc) from a Word file.

Thanks!

Steve


Nov 12 '05 #2
Stephen --

Thank you very much!

Steve
"Stephen Lebans" <Fo****************************************@linval id.com> wrote
in message news:PX********************@ursa-nb00s0.nbnet.nb.ca...
From the Word MVP site here:
http://www.mvps.org/word/FAQs/MacrosVBA/DSOFile.htm

Using VBA, how can I get access to the Document Properties of a Word
file without opening the document?

Article contributed by Jonathan West
Microsoft makes an ActiveX DLL available called dsofile.dll, which
allows you to read & write the document properties of an Office file
without opening the file in a document editing window. To obtain it, go
to http://support.microsoft.com/?kbid=224351

The download includes the DLL itself, plus the source code for a small
VB5/VB6 project that demonstrates its use. While the VB code can't be
used unmodified in VBA, looking at it should give you a pretty good idea
of how to use the DLL.

In addition, you can download a template called ListProps.dot (by
clicking on the link) that will use dsofile to list all the Office
documents in a folder, including whichever of the built-in document
properties you want to have.

To run it, proceed as follows.

1.
Download and register dsofile.dll using regsvr32.

2.
Copy the ListProps template into your Word startup folder.

3.
Start Word. A new entry will appear in the Tools menu.

4.
Select the entry. In the dialog that appears, select the properties you
want to include in your list, select the folder you want to have listed,
and select the template you want to use as the document type for the
list.
ListProps then uses dsofile to open each file in turn, get the
properties, and puts the list into a table. Works with available
properties of Word, Excel & PowerPoint files.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Steve" <sa****@penn.com> wrote in message
news:u7*****************@newsread2.news.atl.earthl ink.net...
Can anyone tell me how to retrieve the embedded document data (author,

owner,
status, etc) from a Word file.

Thanks!

Steve

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jari Kujansuu | last post by:
I can successfully parse XML document using SAX or DOM and I can also validate XML document against schema. Problem is that my program should deal with user-defined schemas which means that when...
0
by: David Gersic | last post by:
I'm working with an HR system and trying to deal with an XML document that contains a bunch of personal data (unique to the person) and one or more sets of job data (a person can be hired more than...
2
by: Brett Baisley | last post by:
Hello I have a block of html code that I want to run by calling a javascript function to print it. Its basically a table with menu items in it that is the same for many pages, and instead of...
4
by: Omar | last post by:
Hi, I've been working with this without problems: function regresaValor() { var indexValor = document.forms.eleccion.selectedIndex; var valueValor = document.forms.eleccion.options.value;...
3
by: Richard Fritzler | last post by:
I was given the task of designing a complete web based document prep system. In simplest terms (using a msword explanation) create a database of merge fields, and a library of templates. Allow the...
3
by: Andy Davis | last post by:
I have set up a mail merge document in Word 2003 which gets its data from my Access 2000 database. I want to set up a button on a form that: 1. runs the query to provide the dat for the merge...
12
by: Christian Roth | last post by:
Hello, I am merely asking this for my own understanding: Processing instruction's data part is not entity-aware, i.e. character and numercial entities are not resolved at parsing time. E.g., ...
0
by: Nata | last post by:
hi all i am trying to store the XML Document object into MS SQL2005 i want to store this as whole not different tables; plz help me regarding this i am trying form last two weeks i asked many...
2
by: Colin Halliday | last post by:
I have a Word 2003 mail merge main document (form letter) that is linked to another Word document data source for the mail merge. If I open this doc using the Word GUI, it first asks me to...
0
southoz
by: southoz | last post by:
Good ay all , I'm fairly new to access(a little over 5 weeks now). Since I'v started I have picked up a lot of useful information from forums such as this and in doing so will share that information...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.