T O P I C R E V I E W |
John |
Posted - Mar 10 2014 : 21:24:18 Hello
I have a scanner that has both TWAIN and WIA drivers. What I do not understand is that irrespective of whether I select the TWAIN or WIA drivers via the if statement below, when I get the ImageEnView1.IO.SelectedAcquireSource.Api; the returned value is always TWAIN.
if ImageEnView1.IO.TWainParams.SelectSourceByName(PAnsiChar(AnsiString(tempDefaultScannerName))) = True then
Can someone please explain the lack of correlation between the selected driver type (TWAIN, WIA) and the ImageEnView1.IO.SelectedAcquireSource.Api value?
TIA
John |
1 L A T E S T R E P L I E S (Newest First) |
xequte |
Posted - Mar 11 2014 : 02:25:14 Hi John
TIEAcquireParams is our newer class to provide generic access to acquisition APIs (Twain, WIA, etc)
If you are using ImageEnView1.IO.TwainParams then you are dealing only with the Twain API which does not affect the generic TIEAcquireParams class (ImageEnView1.IO.AcquireParams).
You should use ImageEnView1.IO.AcquireParams.SetSource instead.
E.g.
ImageEnView1.IO.AcquireParams.SetSource(ieaTwain, sTwainScannerName);
Nigel Xequte Software www.xequte.com nigel@xequte.com
|
|
|