Skip to main content
This method restores the contents of the ImageDocument object from the file previously saved with the help of the IImageDocument::SaveToFile method.

Syntax

C++

HRESULT LoadImageDocFromFile(
  BSTR             FileName,
  IImageDocument** Result
);

C#

IImageDocument LoadImageDocFromFile( string FileName );

Visual Basic .NET

Function LoadImageDocFromFile(FileName As String) As IImageDocument

Parameters

FileName [in] This variable contains a full path to the file with image document. Result [out, retval] A pointer to IImageDocument* pointer variable that receives the interface pointer of the resulting ImageDocument object. Must not be NULL.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.

See also

Engine IImageDocument::SaveToFile