Microsoft Developer Support OLE File Property Reader 2.1 Sample (KB 224351)

Code sample download of a COM component which can be used from scripting languages to read the OLE document properties of Microsoft Office files using the OLE IPropertyStorage interface.
  • Version:


    File Name:


    Date Published:


    File Size:

    322 KB

      The Microsoft Developer Support OLE File Property Reader 2.1 Sample demonstrates how to use the IPropertyStrorage interface to read and write document properties of Microsoft Word, Microsoft Excel, Microsoft PowerPoint, and Microsoft Visio files, independent of the application that created the file. The sample includes a binary COM component and the component source code, which developers working in managed code (VB.NET or C#) or scripting languages (VBScript, JScript, ASP) can use to better enhance their ability to index, search, organize or edit the properties of Office files from custom projects.

      The sample has been updated in version 2.1 to handle non-OLE files, such as the new Office 2007 file formats, if a custom property handler is available. This will allow users that have the Office 2007 Compatibility Pack to read/write document properties for Office 2007 files without actually having Office 2007 installed.
  • Supported Operating System

    Windows 2000, Windows Vista, Windows XP

      The sample code is written in Visual C++, and Visual Studio 6.0 or higher is required for rebuilding the sample. To be able to edit Office 2007 files, you will also need the Office 2007 Compatibility Pack.
    • Run the setup to extract the sample files to a folder of your choosing. The sample is provided "AS-IS" for demonstration purposes only. See the Microsoft Knowledge Base article 224351 for more details.