SaveToFile Method of the ImageDocument Object

This method saves the contents of the ImageDocument object into a file. The file is saved in a format which cannot be viewed in any external program. The ImageDocument object saved using this method can be opened with the help of the IEngine::LoadImageDocFromFile method only.

Syntax

Visual Basic .NET

Sub SaveToFile(fileName As String)
    

C++

HRESULT SaveToFile(
   BSTR fileName
);
    

Parameters

fileName
[in] This parameter stores the full path to the file. For example, "C:\MyPic.imageDoc". If this file already exists, it is overwritten without prompt.

Return values

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

Remarks

This method is not suitable for saving images, as it saves the contents of the ImageDocument object in a format not suitable for viewing. It is designed for situations when it is not possible to use the IImageDocument::SaveTo method which saves the object's contents into a folder on disk.

To save an image in a format suitable for viewing, use the IImage::WriteToFile method.

See also

ImageDocument

IEngine::LoadImageDocFromFile

8/15/2023 1:19:30 PM

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.