Changing Word documents file properties with VB code.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
In one of my VB application, I need to change the group of MS Word 2000 documents Header and Footer contents automatically with VB code and i did it successfully but I could not change the properties like title, subject, author as a batch process. Could any one help me out

Thanks in advance
Venka
 
Try something like this
.ActiveDocument.BuiltInDocumentProperties(wdPropertyTitle) = "
.ActiveDocument.BuiltInDocumentProperties(wdPropertyAuthor) = "
 
* =?Utf-8?B?VmVua2F0IFNoaXZhIFJlZGR5?= said:
In one of my VB application, I need to change the group of MS Word
2000 documents Header and Footer contents automatically with VB code and
i did it successfully but I could not change the properties like title,
subject, author as a batch process.

This data can be accessed by using structured storage:

<URL:http://msdn.microsoft.com/library/en-us/stg/stg/the_summary_information_property_set.asp>

COM wrapper for /reading/ the data:

<URL:http://www.mvps.org/emorcillo/dotnet/grl/index.shtml>

For writing, you would need additional p/invoke calls.

Maybe it's possible to change the information using NTFS streams
(untested too):

<URL:http://msdn.microsoft.com/library/en-us/dnfiles/html/ntfs5.asp>
 
Back
Top