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
 Scan multi pages
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

michel.dev@free.fr

1 Posts

Posted - Jun 21 2011 :  10:27:54  Show Profile  Reply
I try with ImageEn v 3.1.2 to scan multi pages form scanner HP Officejet J5700 but I got only the first page in the ImageEnMView and when I save to TIFF it just contains the first page too. Here is my code

...
vMIO: TImageEnMIO;
ImageEnMView1: TImageEnMView;
...
if vMIO.SelectAcquireSource() then
begin
  vMIO.TWainParams.SetDefaultParams();

  if vMIO.Acquire() then
  begin
    SetForegroundWindow(Self.Handle);
    vMIO.SaveToFileTIFF(ChangeFileExt(ParamStr(0), '.tif'));
    ShowMessage('OK');
  end;
end;


Thanks for your help

fab

1310 Posts

Posted - Jun 21 2011 :  13:45:02  Show Profile  Reply
Please try the demo at "multipage\multi", and click on Scanner->Acquire Pages.
It acquire multiple pages executing:


ImageEnMView1.MIO.TWainParams.FeederEnabled := true;
    ImageEnMView1.MIO.TWainParams.AutoFeed := true;
    ImageEnMView1.MIO.TWainParams.DuplexEnabled := false;
    ImageEnMView1.MIO.Acquire(ieaTWain);


Note that you don't need to create TImageEnMIO, because it is already embedded in TImageEnMView (MIO property).
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: