The Microsoft Office Summary Information properties are stored in a separate stream from the standard Summary Information properties. The standard Summary Information property set is described in the section entitled "The Summary Information Property Set" under "Using Property Sets". The name of the stream that contains the Document Summary Information is:
"\005DocumentSummaryInformation"
The FMTID for the Microsoft Office Summary Information property set is:
D5CDD502-2E9C-101B-9397-08002B2CF9AE
Use the DEFINE_GUID macro to define the FMTID for the property set:
DEFINE_GUID(FMTID_DocumentSummaryInformation, 0xD5CDD502L, 0x2E9C,
0x101B, 0x93, 0x97, 0x08, 0x00, 0x2B, 0x2C, 0xF9, 0xAE);
This stream also has a separate section for the custom-defined properties. The format id for the section is
DEFINE_GUID(FMTID_UserDefinedProperties, 0xD5CDD505L, 0x2E9C, 0x101B,
0x93, 0x97, 0x08, 0x00, 0x2B, 0x2C, 0xF9, 0xAE);
The following table shows the added properties to the "DocumentSummaryInformation" stream for Office 95 applications.
Property Name | Property ID String | Property ID | VT Type |
---|---|---|---|
Category | PID_CATEGORY | 0x00000002 | VT_LPSTR |
PresentationTarget | PID_PRESFORMAT | 0x00000003 | VT_LPSTR |
Bytes | PID_BYTECOUNT | 0x00000004 | VT_I4 |
Lines | PID_LINECOUNT | 0x00000005 | VT_I4 |
Paragraphs | PID_PARCOUNT | 0x00000006 | VT_I4 |
Slides | PID_SLIDECOUNT | 0x00000007 | VT_I4 |
Notes | PID_NOTECOUNT | 0x00000008 | VT_I4 |
HiddenSlides | PID_HIDDENCOUNT | 0x00000009 | VT_I4 |
MMClips | PID_MMCLIPCOUNT | 0x0000000A | VT_I4 |
ScaleCrop | PID_SCALE | 0x0000000B | VT_BOOL |
HeadingPairs | PID_HEADINGPAIR | 0x0000000C | VT_VARIANT | VT_VECTOR |
TitlesofParts | PID_DOCPARTS | 0x0000000D | VT_LPSTR | VT_VECTOR |
Manager | PID_MANAGER | 0x0000000E | VT_LPSTR |
Company | PID_COMPANY | 0x0000000F | VT_LPSTR |
LinksUpTo Date | PID_LINKSDIRTY | 0x00000010 | VT_BOOL |
These properties have the following uses:
Internally used property indicating the grouping of different document parts and the number of items in each group. The titles of the document parts are stored in the PID_DOCPARTS property. The HeadingPairs property is stored as a vector of variants, in repeating pairs of VT_LPSTR and VT_I4 values. The VT_LPSTR value represents a heading name, and the VT_I4 value indicates the count of document parts under that heading. This property is used for providing the indentation for different groups on the 'sections' page.
Note As described in "12.3. Serialized Format for Property Sets" of the OLE 2.0 Design Specification, vector elements in the HeadingPairs and TitlesofParts properties should be aligned on 32 bit boundaries. However, in the DocumentSummaryInformation property set, when the code page of the property set is not Unicode, these elements must be packed.