Saves source settings to file (you can re-load them using SourceSettingsLoad).

Source settings are filled when IETWainParams.ShowSettingsOnly is true and you call IEImage.AcquireFromTWain().

Namespace: HiComponents.IEvolution
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public void SourceSettingsSave(
	string fileName
)
Public Sub SourceSettingsSave ( _
	fileName As String _
)
public:
void SourceSettingsSave(
	String^ fileName
)

Parameters

fileName
String
Settings file name.

Examples

CopyC#
// first session: show scanner dialog only to set scanner settings
ieViewer1.Image.TWainParams.ShowSettingsOnly = true;
ieViewer1.Image.AcquireFromTWain();
ieViewer1.Image.TWainParams.SourceSettingsSave("mysettings.dat");

// another session: use saved settings
ieViewer1.Image.TWainParams.ShowSettingsOnly = false;
ieViewer1.Image.TWainParams.UseScannerDialog = false;
ieViewer1.Image.TWainParams.SourceSettingsLoad("mysettings.dat");
ieViewer1.Image.AcquireFromTWain();

See Also