DTWAIN_TwainSave return codes

Top  Previous  Next

DTWAIN_TwainSave returns an integer return code on termination indicating success or failure when DTWAIN_TwainSave returns.

 

A list of the return codes, as well as their definitions are as follows:

 

Return Code

Definition

DTWAIN_TWAINSAVE_OK

DTWAIN_TwainSave ran successfully.

 

DTWAIN_ERR_TS_NOFILENAME

File name was not specified.  The TwainSave command-line is missing the -f option.

 

DTWAIN_ERR_TS_NOTWAINSYS

Could not start TWAIN system.

 

DTWAIN_ERR_TS_DEVICEFAILURE

Could not start TWAIN device.

 

DTWAIN_ERR_TS_FILESAVEERROR

Could not save file successfully.

 

DTWAIN_ERR_TS_COMMANDILLEGAL

Bad or illegal command-line argument(s).

 

DTWAIN_ERR_TS_CANCELLED

User cancelled DTWAIN_TwainSave by not selecting a device.

 

DTWAIN_ERR_TS_ACQUISITIONERROR

Error in starting the acquisition process from the device.

 

DTWAIN_ERR_TS_INVALIDCOLORSPACE

Device does not support Black/White, Grayscale, or RGB images.

DTWAIN_ERR_TS_PDFNOTSUPPORTED

PDF option is not available or supported.