Obtain Format Information

The KeyView format detection module (kwad) detects a file's format, and reports the information to your application.

You can obtain format information from a document by using the GetDocFormatInfo method. This method extracts the major format, file class, version, and document attributes, and populates the DocFormatInfo class. It returns the format information as a string. The format information that you can extract is listed in the header file adinfo.h.

For information about mapping detected formats to document readers, see File Formats and Document Readers.