Microsoft Download Center Archive

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

  • Published:
  • Version: 2.1
  • Category: SDK
  • Language: English

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.

  • 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.


Status: Deleted

This download is no longer available on The downloads below are archives provided by the Internet Archive Wayback Machine from the Microsoft Download Center prior to August 2020.

SHA1: 1d034f8ae2bf179206f708a9f2097ca9445bd1dc
272 KB

System Requirements

Operating Systems: 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.

Installation Instructions

  • 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.

Related Resources