KeyView 23.2

# fpGetDocInfo()

Gets the format information for a document, including the file format and file class.

## Syntax

    KVErrorCode (pascal* fpGetDocInfo)(
        KVDocument pDocument,
        ADDOCINFO* pDocInfo);

## Arguments

`pDocument` | A `KVDocument` that you created with fpOpenDocumentFromFile() or fpOpenDocumentFromStream().
`pDocInfo` | A pointer to an ADDOCINFO structure that you want to populate with format information.

## Returns

The return value is an error code.

- If the call is successful, the return value is `KVError_Success` and the document information is set in `pDocInfo`.
- If the call is unsuccessful, the return value is an error code that indicates the problem.

## Discussion

- This function runs in process or out of process. See The Filter Process Model.

Copyright 2016-2023 Open Text
Version 23.2 | Last updated March 2023

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL KeyView 23.2

Topic Title: fpGetDocInfo()