This property sets the information file where the scan settings, set in the scan manufacturer's scan driver interface, are saved. Saved information can be loaded from the InformationFile and used in your custom built scan interface.
Property Value
The filename of the file where the scan settings are saved
Explanation
The InformationFileName property sets the information file where the scan settings, set in the scan manufacturer's scan driver interface, are saved. Saved information can be loaded from the InformationFile and used in your custom built scan interface. To use the InformationFileName property, the scan driver's user interface must be used once but after that all those settings can be loaded into a custom built scan interface. Also, if an infomation file exists containing previous setting information, the setting information is loaded and displayed in the UI (making it possible to check the previously saved contents).
Examples
The following code will save the settings used in the scan driver's user interface in the information file and load those setting from the file.
Dim Ret As Boolean
ImageKit1.Scan.UserInterface = ScanUserInterface.SetOnly
ImageKit1.Scan.InformationFileName = "ui.dat" 'If the file already exists, the settings will be loaded and displayed in the UI.
Ret = ImageKit1.Scan.Execute()
if Ret = False Then Exit Sub
ImageKit1.Scan.Transfer = ScanTransfer.Memory
ImageKit1.Scan.Compression = ScanCompression.None
ImageKit1.Scan.UserInterface = ScanUserInterface.Suppress
ImageKit1.Scan.Mode = ScanMode.InformationFile
Ret = Scan.Execute()
[Visual C#.NET]
bool Ret;
imageKit1.Scan.UserInterface = ScanUserInterface.SetOnly;
imageKit1.Scan.InformationFileName = "ui.dat"; //If the file already exists, the settings will be loaded and displayed in the UI.
Ret = imageKit1.Scan.Execute();
if (!Ret) return;
imageKit1.Scan.Transfer = ScanTransfer.Memory;
imageKit1.Scan.Compression = ScanCompression.None;
imageKit1.Scan.UserInterface = ScanUserInterface.Suppress;
imageKit1.Scan.Mode = ScanMode.InformationFile;
Ret = imageKit1.Scan.Execute();