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
Dim Scan As New Newtone.ImageKit.WPF.Scan
Scan.UserInterface = ScanUserInterface.SetOnly
Scan.InformationFileName = "ui.dat" 'If the file already exists, the settings will be loaded and displayed in the UI.
Ret = Scan.Execute()
if Ret = False Then Exit Sub
Scan.Transfer = ScanTransfer.Memory
Scan.Compression = ScanCompression.None
Scan.UserInterface = ScanUserInterface.Suppress
Scan.Mode = ScanMode.InformationFile
Ret = Scan.Execute()
[Visual C#.NET]
bool Ret;
Newtone.ImageKit.WPF.Scan scan = new Newtone.ImageKit.WPF.Scan();
scan.UserInterface = ScanUserInterface.SetOnly;
scan.InformationFileName = "ui.dat"; //If the file already exists, the settings will be loaded and displayed in the UI.
Ret = scan.Execute();
if (!Ret) return;
scan.Transfer = ScanTransfer.Memory;
scan.Compression = ScanCompression.None;
scan.UserInterface = ScanUserInterface.Suppress;
scan.Mode = ScanMode.InformationFile;
Ret = scan.Execute();