Visual Basic
C#
Managed Extensions for C++
C++/CLI
Parameters
- fileName
- Specifies the name or pathname of the file from which to load the settings.
Exception | Description |
---|---|
ImageGear.Core.ImGearException | Thrown if no data source is open, or if the fileName is not in one of the following directories: MyDocuments, MyPictures, MyMusic, or MyVideos. Also thrown if the settings file contains settings for a TWAIN device other than the current TWAIN device. |
This method loads data source settings from the specified file, and configures the data source with the settings. The file should have been written by the SaveDataSourceSettings method.
A settings file contains settings for one TWAIN device. Settings for other TWAIN devices will need to be saved to separate settings files.
Note: This method cannot load a settings file written by the ImGearTWAIN.SaveCustomDSData(string fileName) method of the ImageGear .NET TWAIN API.