Scanners Class |
Namespace: OmniPageCSDK.IproPlus
The Scanners type exposes the following members.
| Name | Description | |||
|---|---|---|---|---|
| ConfigFileLocation |
This property is used to get or set the location of the scanner.ini file, which contains the scanners that are configured by the Scanner Wizard. | |||
| Count |
This property returns the number of Scanner objects contained by the collection.
| |||
| CustomerID | This API is preliminary and subject to change. |
| Name | Description | |
|---|---|---|
| Dispose | Releases all resources used by the Scanners | |
| GetEngine |
Returns the Engine object.
| |
| GetEnumerator | ||
| GetItem |
This property returns the requested Scanner object from the collection. | |
| GetPaperSize |
This helper method returns the size of the standard paper size defined by PaperFormat. | |
| LoadSettings |
This method loads the settings of the available scanners (e.g. color mode, resolution, etc.) from an external file. | |
| SaveSettings |
This method saves the settings of the available scanners into an external file. | |
| ScannerWizard |
This method is used to display the Scanner Wizard to add, remove, or test scanners. | |
| Selected |
Returns the currently selected scanner. |
| Name | Description | |
|---|---|---|
| OnScanWizardFinished |
This event is fired when the Scanner Wizard is ready.
| |
| OnSelectionChanged |
This event is fired when the selected scanner is changed.
| |
| OnSettingsLoaded |
This event is fired when the scanner settings are loaded.
|
Each element represents a physical scanner. The scanner list is loaded from an ini file. The ini file can be altered using the Scanner Wizard. To run the wizard, invoke the ScannerWizard method. Using the wizard you can add, remove and parameterize the available scanners. By default, the ini file is called scanner.ini and stored in the current user's application data. The scanner.ini file can optionally be saved to the All Users application data folder, or into the application binary folder. To change the ini file location, update the ConfigFileLocation property accordingly. If the ConfigFileLocation property changes, the current scanner list is destroyed, and the new scanner.ini file is loaded. Use the SaveSettings and LoadSettings methods to save / restore scanner parameters - like resolution or color mode - stored in the external setting file.
During scanning, the scanner drivers may show their own progress dialogs. To specify a parent window for these dialog boxes, set the WindowHandle property of the Engine object accordingly. Providing a valid window handle is highly recommended to avoid the situation when a window or message is displayed behind the main application window. The WindowHandle property should be set before initializing the scanning subsystem. If the parent window is subject to change after you initialized the scanning system, you need to re-initialize the scanning so the new setting takes effect. To do so, update the value of the ConfigFileLocation property. Changing the ConfigFileLocation property also resets all scanner properties to their default value.