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
 Can I sense feeder is loaded
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Homer

USA
70 Posts

Posted - Dec 29 2021 :  17:03:02  Show Profile  Reply
I would like to react to there being paper in the document feeder or not. Is there a way to sense if the feeder is loaded?

It looks as if AcquireParams.FeederEnabled is the way. Is that correct? Or, is it AcquireParams.FeederLoaded, or some combination?

Homer

USA
70 Posts

Posted - Dec 30 2021 :  02:16:54  Show Profile  Reply
I've tried AcquireParams.FeederEnabled, FeededLoaded, PaperDetected, and none seem to work with my HP Envy Photo 7855.
Go to Top of Page

xequte

38610 Posts

Posted - Dec 30 2021 :  14:56:44  Show Profile  Reply
Yes, you can use FeederLoaded if the device supports it.

while ImageEnView1.IO.AcquireParams.FeederLoaded do
begin
  ImageEnView1.IO.Acquire;
  ImageEnView1.IO.SaveToFile('page'+inttostr(count)+'.jpg');
  Inc( count );
end;


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Homer

USA
70 Posts

Posted - Jan 03 2022 :  18:45:19  Show Profile  Reply
I was hoping to be able to trap the absence of paper and give the user a message. If the documents are loaded, it would just proceed with the scan. This code tells me the feeder is empty even when the original is loaded. Is something like this possible, or does the test need to be in a loop, as in your example?


{If they selected Auto Feed, then see if the feeder is loaded.}
    if chkAutoFeed.Checked and  not frmMain.ImageEnMView1.MIO.AcquireParams.FeederLoaded then
    begin
      MessageBox(Application.Handle,
        pChar('Document Feeder is empty.'#13'Please load your original(s) facing '+
              'the proper direction.'),
        pChar('Warning'), MB_OK + MB_ICONWARNING);
      exit;
    end;
Go to Top of Page

xequte

38610 Posts

Posted - Jan 07 2022 :  01:03:40  Show Profile  Reply
Hi

I can't see anything wrong with that code. Possibly that scanner is returning an unexpected value?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: