ImageGear for Silverlight
LoadDataSourceSettings Method
See Also  Send Feedback
ImageGear20.TWAIN Assembly > ImageGear.TWAIN Namespace > ImGearTWAIN Class : LoadDataSourceSettings Method




fileName
Specifies the name or pathname of the file from which to load the settings.

Glossary Item Box

This method loads data source settings from the specified file, and configures the data source with the settings.

Syntax

 
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.

Exceptions

ExceptionDescription
ImageGear.Core.ImGearExceptionThrown 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.

Remarks

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.

See Also

©2013. Accusoft Corporation. All Rights Reserved.