ScanInitExt Method

Description         This method initializes the BiTwain control, and verifies the existence of the dynamic link library needed.

This function lets one specify the name of the Twain data source manager DLL that should be used by BiTwain. The Twain 2.0 or later data source manager is named TWAINDSM.dll and the Twain 1.9 or older data source manager is called twain_32.dll. Sometimes it might be necessary to use the Twain 1.9 or older data source manager, if the scanner does not support the 2.0 or later data source manager, or when using Citrix scanner redirection. Full path can also be specified instead of just the DLL name. The DLL is loaded from the default locations specified in the PATH environment variable if the full path is not specified.

Usage                  ret = [form.]TWAIN. ScanInit TwainDLLName

Parameters         TwainDLLName  string   The name of the Twain Data Source Manager DLL.

Returns               ret                           Short               Return TW_OK on success or an error code on failure.

Remarks

Programing Notes    

See Also              ScanInit method