KeyView 24.1

# fpCloseDocument()

Closes a `KVDocument` that was opened with fpOpenDocumentFromFile() or fpOpenDocumentFromStream(). Call this function when you no longer need the `KVDocument`, to free the memory that was allocated.

You must call this function on all open documents created by a KeyView Filter session, before calling fpShutdown() on the session.

## Syntax

    BOOL (pascal* fpCloseKVDocument)(KVDocument pDocument);

## Arguments

`pDocument` | A `KVDocument` that you created with fpOpenDocumentFromFile() or fpOpenDocumentFromStream().

## Returns

This functions returns `TRUE` on success or `FALSE` on failure.

Copyright 2016-2023 Open Text
Version 24.1 | Last updated December 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 MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: IDOL KeyView 24.1

Topic Title: fpCloseDocument()