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
 Questions about scanning
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Stalker4

Ukraine
55 Posts

Posted - Aug 02 2013 :  07:49:58  Show Profile  Reply
Hi All,

1) Scanning with multiple pages TImageEnMView.MIO

There Scanner (Sheetfed Scanner AV176U, although I think the type of scanner is not important), in
which can lay several sheets, and then calling
ImageEnMView.MIO.Acquire scan them all.

Question: How do you say ImageEnMView, I do not want to scan all sheets and
Only XX sheets?
In aid that is not found such a property.

2) How to check before going to the properties TwainParams, that the twain-scanner
off or non existent?
The property TwainParams.LastError not fit because it does not show
correct error code.
For example, after a call or TwainParams.Update time a property
TwainParams.DuplexSupported, property LastError constantly returns 1
regardless of whether the scanner is turned off or not.

3) Executes the code:
with ListImageEnMView.MIO.TwainParams do
   for nCou := 0 to SourceCount - 1 do
     ScannerStComboBox.Items.Add(SourceName[nCou]);
As a result, ScannerStComboBox.Items not only is TWAIN-source
(AV176U), but WIA-source (WIA-AV176U).

Why is this happening? How do I get only the TWAIN-sources?

fab

1310 Posts

Posted - Sep 06 2013 :  00:03:16  Show Profile  Reply
Hi,

quote:
1) Scanning with multiple pages TImageEnMView.MIO


please try ImageEnMView.MIO.TwainParams.AcceptedImages := ...number_of_images...

then call Acquire.

quote:
2) How to check before going to the properties TwainParams, that the twain-scanner


I'm sorry, this is not possible with Twain and ImageEn.

quote:
3) Executes the code:


Each Twain driver has a WIA wrapper (seen as Twain device), so ImageEn sees both. The unique way to avoid this is to filter out all devices with the "WIA" string inside.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: