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 : setScanner Method |
ASP.NET Ajax Javascript (Specification) | |
---|---|
function setScanner( scanner : ImGearIsisScanner, callback : function ) : ImGearIsisOperationStatus; |
ASP.NET Ajax Javascript (Usage) | |
---|---|
var resultVar = instanceOfImGearIsisScannerSession.setScanner(ImGearIsisScanner,function); |
The JavaScript code below demonstrates how to set a scanner, where scannerSelect is an HTML select element that contains the scanners that were previously retrieved (and stored in the scanners variable) using the getScanners method:
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.
A list of scanners that are installed on the system can be retrieved using the ImageGear.Web.Isis.ImGearIsisScannerSession.getScanners method.
If you want to use a built-in user interface to show the scanner list or use the previously selected scanner, use the ImageGear.Web.Isis.ImGearIsisScannerSession.setScannerWithDialog method instead.
ImageGear.Web.Isis Namespace Client API~ImageGear.Web.Isis.ImGearIsisScannerSession
ImGearIsisScannerSession Members