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




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

Glossary Item Box

This method queries the data source for its current settings, and saves these settings to the specified file.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

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

Exceptions

ExceptionDescription
ImageGear.Core.ImGearException Thrown if no data source is open, or if the file is not being saved to one of the following directories: MyDocuments, MyPictures, MyMusic, or MyVideos.

Remarks

This method saves data source settings to the specified file. A settings file contains settings for one TWAIN device. Settings for other TWAIN devices will need to be saved to separate settings files.

The settings file can be used to restore the data source settings to this data source using the LoadDataSourceSettings method.

Note: Files written by this method cannot be loaded by the ImGearTWAIN.LoadCustomDSData(string fileName) method of the ImageGear .NET TWAIN API.

See Also

©2013. Accusoft Corporation. All Rights Reserved.