-sn

Top  Previous  Next

-sn deviceName

 

Selects the TWAIN driver to use by specfying the Product Name of the TWAIN device.  The deviceName must be one of the product names displayed in the "Select TWAIN device" dialog that is usually displayed when choosing a TWAIN device.  Using -sn suppresses the usual "Select TWAIN device" dialog and chooses the device immediately.

 

See also -sd to select the default device.

 

If neither -sd or -sn is specified, the TWAIN "Select TWAIN device" dialog is displayed to the user.

 

Example:

DTWAIN_TwainSave("-sn \"Fujitsu Limited TWAIN\"");

 

Selects the TWAIN driver named "Fujitsu Limited TWAIN" when acquiring images.

 

Note that in the example above, C/C++ escape sequences are used to embed double quotes in the string.  Please consult your language as to the proper way to insert double quotes within quoted strings.

 

Default Setting:

The TWAIN "Select TWAIN device" dialog is shown if the -sd option is also not specified.