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?
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.