TIETwainParams.ShowSettingsOnly
Declaration
property ShowSettingsOnly: boolean;
Description
If ShowSettingsOnly is True the scanner driver will show settings dialog, without acquiring an image.
You can use
SourceSettings to read scanner settings.
Subsequent calls to
Acquire will return True if user presses OK (or Save), False otherwise.
| Demos\ImageAcquisition\TwainStore\TwainStore.dpr |
// first session: show scanner dialog only to set scanner settings
ImageEnView1.IO.TwainParams.ShowSettingsOnly := true;
ImageEnView1.IO.Acquire();
ImageEnView1.IO.TwainParams.SourceSettings.SaveToFile('mysettings.dat');
// another session: use saved settings
ImageEnView1.IO.TwainParams.ShowSettingsOnly := false;
ImageEnView1.IO.TwainParams.VisibleDialog := false;
ImageEnView1.IO.TwainParams.SourceSettings.LoadFromFile('mysettings.dat');
ImageEnView1.IO.Acquire();