ErrorCode,  ErrorStr  Properties

Description         Store the last error code and error string. Not available at design time, read only at run time.

Usage                  [form.]TWAIN.ErrorCode
[form.]TWAIN.ErrorStr

Data Type          ErrorCode: Integer,  ErrorStr: String

Available            ¨Design-Time      þRun-Time Read      ¨Run-Time Write

Remarks             List of error codes:

 

TW_OK

Operation was successful.

TW_GENERAL_ERROR

General internal error.

TW_NOTOPEN

Could not find TWAIN driver or could not load DLL.

TW_TRANSFERFAILURE

Data transfer failure. Possibly not enough memory.

TW_OPENDSMFAILURE

Could not open Data Source Manager.

TW_COMPATIBLITY

The TWAIN driver version is not supported.

TW_OPENDSFAILURE

Could not open Data Source.

TW_CLOSEDSFAILURE

Could not close Data Source.

TW_SELECTDSFAILURE

Data Source selection by the Data Source Manager failed.

TW_HWND_ERROR

Error createing window for getting event from data source.

TW_INVALIDPARAMETER

Invalid function parameter.

TW_NOTTIFFDLL

The BiTiff.dll is missing.

TW_FILESAVEERROR

Error saving tiff image.

TW_NOTTWAINDLL

Twain dll is missing.

TW_LOADED

Twain dll is already loaded.

TW_NOTDLGDLL

BiDlgs32.dll is missing.

TW_SUPPORT_OPERATION

Operation is not supported.

TW_UI_CANCEL

Black Ice specific scan settings dialog was canceled.