473,698 Members | 2,047 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4725
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.co m> wrote in message
news:u7******** *********@newsr ead2.news.atl.e arthlink.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************ *************** *************@l invalid.com> wrote
in message news:PX******** ************@ur sa-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.co m> wrote in message
news:u7******** *********@newsr ead2.news.atl.e arthlink.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
2937
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 I parse some element from XML document I don't know until runtime the type of the element (it depends on the type used in user-defined schema). XML parser obviously validates that the value of the element is correct type but still I receive that...
0
1194
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 once), all expressed in a single XML document. I want to flatten out the multiple job data parts by building a much larger XML document. (This may not make sense by itself, but it's part of a larger project.) Dummying up an example to...
2
2383
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 copying/pasting everytime I change it, I figure this will be better, as I only change it once. The problem is, document.write doesn't handle multiple lines very well, so I was wondering what is the best way to do this? Maybe there is even a better...
4
7072
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; opener.document.forms.valorTxt.value = valueValor; window.close();
3
5383
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 webuser to select the template, merge his DB record, and produce a formatted document that can be printed or downloaded. We need to do this without specialized software on the client, since it will be universally available to webusers. We...
3
5583
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 document in Word; 2. opens the document and runs the merge process for the new data. I have managed to write the code to perform step 1 ok, but I'm having trouble with step 2. It opens the word document fine but does not perform the mail merge of...
12
1555
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., <?mypi &lt;par/&gt; ?> delivers as data part the String(!) "&lt;par/&gt;".
0
3249
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 people but no use. below is my program In that i want to store Document document object into database which as var image/blob/clob plz help me
2
3374
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 confirm that I want to run a query to select the data from the data source file, then it opens the form letter fine. I can preview the merged records and complete a merge to a new document. I have a VB 2006 project (.net framework 2.0) which opens the...
0
8661
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 with others. I have seen many request for information on mail merging an how to send data to word documents this is something I have put together with the answers given by others and I hope this will help a few newbies , I know there are easier ways...
0
8674
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7723
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4366
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3045
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2328
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.