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
 Acquire black page when scanner is not connected

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
jccruz Posted - Aug 14 2013 : 19:31:47
Hello, please give me a hand with this problem!

I have a Canon Lide 110 installed in my computer.

When I try to acquire a document and the scaner is not plugged in the USB, it opens a black page at ImageEnMView.

ImageEnMView1.MIO.TwainParams.VisibleDialog := false;
ImageEnMView1.MIO.Acquire;

If I use DeviceOnline parameter it always returns true even it is the scaner is not connected.

What can I do to know if the scaner is connected or detect if it captured a black page?

Thanks










JCC
5   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Sep 06 2013 : 00:49:07
Hi,
next version will have "if not fAborting...etc.." patch. Thank you.
ehkhalid Posted - Aug 26 2013 : 00:40:14
Hi,
Well in my version of imageen there is a "with fgrec do" before all thoses lines, that's why i don't uses fgrec.fabort, but yes you can add it if there is no "with fgrec do" before.

jccruz Posted - Aug 25 2013 : 16:13:02
Thanks ehkhalid for your help and attention.

I just have to put "grec." before fAborting.
Is it right?

if not grec.fAborting then

Jose Carlos

JCC
ehkhalid Posted - Aug 21 2013 : 01:36:38
Hi,
I got the same problem 4 years ago, the prblem is that the image callback is always called even if there is an error, so i modified the imageen source code to ignore callback when an error is occured, if you have imageen source code, you need to modify the imscan file (i use vcl version), in the IETW_XferReadyMulti procedure, find the line "MultiCallBack(fBitmap, TObject(IOParams), ImDpiX, ImDpiY);", just before add this ligne "if not fAborting then"

The code before the modification is


         MultiCallBack(fBitmap, TObject(IOParams), ImDpiX, ImDpiY);
         FreeAndNil(fBitmap);


After the modification , the code will be



         if Not fAborting then
           MultiCallBack(fBitmap, TObject(IOParams), ImDpiX, ImDpiY);
         FreeAndNil(fBitmap);


jccruz Posted - Aug 20 2013 : 17:11:37
Please, any help?

JCC