Translate Format Information

Format information can include file attributes in the following categories:

Not all categories are required. Many formats only include major format and file class, or major format only.

The format information has the following structure:


For example:

Each number in the format information represents a file attribute. The entry represents a Lotus 1-2-3 Spreadsheet file version 9.0, where

81= Lotus 1-2-3 Spreadsheet (major format)

 2 = Spreadsheet (file class)

 0 = not defined (minor format)

 9 = 9 (major version)

 0 = 0 (minor version)

This example applies to the formats.ini file. When extracting format information using the GetDocFormatInfo method, the same format is represented as


The format values returned from GetDocFormatInfo differ from those in formats.ini because the former defines a unique ID for each major format, while the latter uses a major version, minor version, and minor format to distinguish between formats.