ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Api and Driver relationship
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

John

USA
94 Posts

Posted - Mar 10 2014 :  21:24:18  Show Profile  Reply
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

xequte

38613 Posts

Posted - Mar 11 2014 :  02:25:14  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: