Export (0) Print
Expand All
4 out of 4 rated this helpful - Rate this topic

The Summary Information Property Set

COM defines a standard common property set for storing summary information about documents. The Summary Information property set must be stored in a stream object. That is, this property set must be stored as a simple property set. For more information, see Storage and Stream Objects for a Property Set.

For example, to create an ANSI simple property set, you would call IPropertySetStorage::Create to create the property set, specifying PROPSETFLAG_ANSI (simple is the default type of property set), then write to it with a call to IPropertyStorage::WriteMultiple. To read the property set, you would call IPropertyStorage::ReadMultiple.

All shared property sets are identified by a stream or storage name with the prefix "\005" (or 0x05) to show that it is a property set that can be shared among applications. The Summary Information property set is no exception. The name of the stream that contains the Summary Information property set is: "\005SummaryInformation"

It is not necessary to know the stream name of the property set when accessing it by means of the Create or Open methods of the IPropertySetStorage interface; in this case only the format identifier (FMTID) need be known. The FMTID for the Summary Information property set is: F29F85E0-4FF9-1068-AB91-08002B27B3D9

The declaration for this value is available in the header file as FMTID_SummaryInformation. For more information, see the FMTIDS in the Predefined Property Set Format Identifiers.

The following table lists the string property names for the Summary Information property set, along with the respective property identifiers and variable type (VT) indicators. The names are not typically stored in the property set, but are inferred from the Property ID value. The Property ID String entries shown here correspond to definitions found in the header files.

NameProperty ID stringProperty IDVT type
TitlePIDSI_TITLE0x00000002VT_LPSTR
SubjectPIDSI_SUBJECT0x00000003VT_LPSTR
AuthorPIDSI_AUTHOR0x00000004VT_LPSTR
KeywordsPIDSI_KEYWORDS0x00000005VT_LPSTR
CommentsPIDSI_COMMENTS0x00000006VT_LPSTR
TemplatePIDSI_TEMPLATE0x00000007VT_LPSTR
Last Saved ByPIDSI_LASTAUTHOR0x00000008VT_LPSTR
Revision NumberPIDSI_REVNUMBER0x00000009VT_LPSTR
Total Editing TimePIDSI_EDITTIME0x0000000AVT_FILETIME (UTC)
Last PrintedPIDSI_LASTPRINTED0x0000000BVT_FILETIME (UTC)
Create Time/Date( (*))PIDSI_CREATE_DTM0x0000000CVT_FILETIME (UTC)
Last saved Time/Date( (*))PIDSI_LASTSAVE_DTM0x0000000DVT_FILETIME (UTC)
Number of Pages Number of Words Number of CharactersPIDSI_PAGECOUNT PIDSI_WORDCOUNT PIDSI_CHARCOUNT0x0000000E 0x0000000F 0x00000010VT_I4 VT_I4 VT_I4
ThumbnailPIDSI_THUMBNAIL0x00000011VT_CF
Name of Creating ApplicationPIDSI_APPNAME0x00000012VT_LPSTR
SecurityPIDSI_SECURITY0x00000013VT_I4
* Some methods of file transfer, such as a download from a BBS, do not maintain the file system version of this information correctly.

 

Related topics

Implementing the Summary Information Property Set

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.