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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Api and Driver relationship

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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