Every file created by a Microsoft Office application supports a set of built-in document properties. In addition, you can add your own custom properties to an Office document either manually or through code. You can use document properties to create, maintain, and track information about an Office document such as when it was created, who the author is, where it is stored, and so on. To get or set the properties you can use automation to extract the Microsoft Office application properties.
Take a look at the following links for samples:
But what happens if you are working with a Web-based application and you want to avoid the use of automation in a Web server…
I found a nice workaround to extract Office document properties without using automation. You can use the Dsofile, an in-process ActiveX component that allows you to read and to edit the OLE document properties that are associated with Microsoft Office files, such as the following: • Microsoft Excel workbooks• Microsoft PowerPoint presentations• Microsoft Word documents• Microsoft Project projects• Microsoft Visio drawings• Other files without those Office products installed
If you are working with a managed application follow the next steps:
You can also extract custom properties using the DSOFile control. Have a peek and enjoy!