function onScannerLoaded(status) {
if (status.get_status() !== ImageGear.Web.Isis.ImGearIsisStatus.Completed) {
alert(status.get_statusMessage());
}
// The scanner can now be accessed through the ImGearIsisScannerSession scanner property.
var scanner = scannerSession.get_scanner();
// You could use the getTag method or getAllTags method here to get the current scanner settings.
}
// Show the scanner selection dialog with a list of connected drivers.
scannerSession.setScannerWithDialog(ImageGear.Web.Isis.ImGearIsisLoadScannerOption.ShowConnectedDriverList, onScannerLoaded);