Nicomsoft OCR: Developer's Guide


Svr_SaveToFile


Syntax

C++:int Svr_SaveToFile(HSVR SvrObj, UNICODECHAR* FileName)
C#:int Svr_SaveToFile(int SvrObj, string FileName)
Visual Basic:Function Svr_SaveToFile(ByVal SvrObj As Integer, ByVal FileName As String) As Integer
Java:int Svr_SaveToFile(HSVR SvrObj, String FileName)
Delphi:function Svr_SaveToFile(SvrObj:HSVR; FileName:PWCHAR):integer


Description

Marks the document as finished, and saves the current document to the specified file. The Svr_AddPage function must be called at least once before calling this function.


Parameters

SvrObj [IN] – the Saver object.
FileName [IN] – the target file name.


Return value

Zero if success, otherwise an error code.


Remarks

None.


Example

See the sample code for the Svr_Create function.