ImageGear.Web.Isis Namespace Client API Library > ImageGear.Web.Isis Namespace Client API~ImageGear.Web.Isis_namespace > ImageGear.Web.Isis Namespace Client API~ImageGear.Web.Isis.ImGearIsisScannerSession : setScannerWithDialog Method |
ASP.NET Ajax Javascript (Specification) | |
---|---|
function setScannerWithDialog( loadScannerOption : ImGearIsisLoadScannerOption, callback : function ) : ImGearIsisOperationStatus; |
ASP.NET Ajax Javascript (Usage) | |
---|---|
var resultVar = instanceOfImGearIsisScannerSession.setScannerWithDialog(ImGearIsisLoadScannerOption,function); |
The JavaScript code below demonstrates how to set a scanner using a scanner selection dialog:
This is an asynchronous method.
You must set a scanner before creating a scan job. Only one scanner can be set at a time. Any previously set scanner is unloaded automatically.
This method loads a scanner based on the user's selection. A built-in user interface is displayed to show the scanner list. If you want to manage the scanner list yourself, use the ImageGear.Web.Isis.ImGearIsisScannerSession.setScanner method instead. A list of scanner drivers on the machine can be retrieved using the getScanners method.
ImageGear.Web.Isis Namespace Client API~ImageGear.Web.Isis.ImGearIsisScannerSession
ImGearIsisScannerSession Members