Appearantly there is no managed way to do this in C#, I got this from MS:
http://msdn.microsoft.com/library/de...sofficedev.asp
Excerpt:
How do I access my document properties in an Office document?
You can automate Microsoft Word, Excel or PowerPoint with Visual C++ to
retrieve and manipulate both built-in and custom document properties. For
more information and an example, see HOWTO: Use Visual C++ to Access
DocumentProperties with Automation (Q238393).
You can also retrieve document property information without Automation and
even without the need for the Office application that created the file.
Office documents are OLE compound documents that store document properties in
persistent property sets. These property sets are managed by COM/OLE and can
be retrieved using the IPropertySetStorage and IPropertyStorage interfaces.
For details, see HOWTO: Read Compound Document Properties Directly with VC++
(Q186898) and Dsofile.exe Lets You Edit Office Document Properties from
Visual Basic and Active Server Pages (Q224351).
"Craig" wrote:
Yes, but that doesn't show the custom "properties" that can be added when
you: right click on file (for example MS Word file), click properties, go to
the "Custom" or "Summary" tabs and enter data. Where is this data stored?
And is there an API to access this data?
Thanks.
"Mohamoss" wrote:
Hi
You can use the FileVersonInfo class of the diagnostic namespace
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemdiagnosticsfileversioninfoclasstopic.as p
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC