In This Topic
Gets the scan intent for WIA/eSCL device.
Syntax
var instance = new Vintasoft.Twain.WebTwainDeviceJS(deviceName, productFamily, manufacturer, driverVersion, twainVersion, deviceManager, is64Bit);
var value; // Type: string
value = instance.get_ScanIntent();
function get_ScanIntent() : string;
Return Value
The scan intent for WIA/eSCL device.
Exceptions
| Exception | Description |
| Thrown if device is not opened OR error occurs during getting value of device capability. |
Example
// Gets name of scan intent of opened WIA/eSCL device.
function getScanIntent(device) {
try {
console.log("Device: " + device.get_DeviceName());
// if device is not opened
if (!device.get_IsOpened()) {
console.log("Device is not opened. Please open device.");
return;
}
console.log("Scan intent: " + device.get_ScanIntent());
}
catch (ex) {
alert(ex);
}
}
Browser Compatibility
See Also