ImageGear for Silverlight
Save or Load Data Source Settings
Send Feedback
ImageGear for Silverlight User Guide > Using ImageGear for Silverlight > Using ImageGear.TWAIN Namespace > Differences between ImageGear for Silverlight and ImageGear for .NET TWAIN > Save or Load Data Source Settings

Glossary Item Box

Both ImageGear for Silverlight and ImageGear .NET expose methods to save the configuration (capability settings) of a data source to a file, and then at a later time restore that configuration of the data source by reading the configuration from the file.

In ImageGear .NET this functionality is exposed through the LoadCustomDSData and SaveCustomDSData methods. These methods wrap the operation triplets DG_CONTROL / DAT_CUSTOMDSDATA / MSG_SET and DG_CONTROL / DAT_CUSTOMDSDATA / MSG_GET respectively, but they also implement saving this data to a file and loading it into memory from a file. It is important to note that these operation triplets are not supported by every data source, therefore the LoadCustomDSData and SaveCustomDSData methods may not work for every data source. Also, as noted in the TWAIN specification, the structure of the custom DS data returned by a data source is defined by the data source.

In ImageGear for Silverlight this functionality is exposed through the LoadDataSourceSettings and SaveDataSourceSettings methods. These methods work independently of the operation triplets DG_CONTROL / DAT_CUSTOMDSDATA / MSG_SET and DG_CONTROL / DAT_CUSTOMDSDATA / MSG_GET. This allows these methods to be consistent about what capability settings are saved and loaded, to work on all data sources, and to define the structure of the data.

©2013. Accusoft Corporation. All Rights Reserved.