Close Method of the Document Object

This method closes a document. It allows you to free some resources and save the changes made to the document.

Note that if you save changes on close, it's best to verify the changed fields using the CheckRules method before closing the document. You will be able to save the changes even if the rules show some errors.

Syntax

Visual Basic .NET

Sub Close(SaveChanges As Boolean)
    

C++

HRESULT Close(
  VARIANT_BOOL SaveChanges
);
    

Parameters

SaveChanges
[in] This variable specifies whether the changes made to the document should be saved. If the value of this parameter is FALSE, the changes are not saved. This parameter is optional. The default value of the parameter is TRUE.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FlexiCapture SDK functions.

See also

Document

IDocument::Open

Using a Document Object within a Project

See sample: FlexiCapture SDK Code Snippets, FlexiCapture Project Viewer

15.08.2023 13:19:30

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.