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
 Duplex scanning with IEJoinBitmaps: the image does not print back on 2 pages
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

RudBus

Canada
9 Posts

Posted - Feb 25 2025 :  08:57:39  Show Profile  Reply
I'm using duplex scanning with IEJoinBitmaps to generate 1 image for both sides of the page and it works great. However when I want to print back the image or the PDF it shrinks to fit on 1 page instead of 2 pages. Is there an easy way to fix it?

Also if I set the Duplex mode to Disabled in the dialog window before scanning I noticed that the property ImageEnMView.MIO.TwainParams.DuplexEnabled is still True. How can I detect that the duplex mode has been disabled then ?

xequte

38944 Posts

Posted - Feb 25 2025 :  13:50:40  Show Profile  Reply
Hi

A joined image becomes just one image, so will be printed on a single image. Why not just split the image into two separate (temporary) images while printing?

Please see the example at:

http://www.imageen.com/help/TIEBitmap.CopyRectTo.html


Regarding DuplexEnabled, try getting the latest scanner properties using GetFromScanner:

https://www.imageen.com/help/TIETwainParams.GetFromScanner.html

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

RudBus

Canada
9 Posts

Posted - Feb 26 2025 :  08:41:47  Show Profile  Reply
Thanks for the tips. However I cannot get the GetFromScanner working. I'm using TImageEnMView to acquire so I'm calling ImageEnMView.MIO.TwainParams.GetFromScanner in the OnAcquireBitmap event and it returns False everytime. Everything else works fine. Is there a better place to use it? I found out this issue that may be similar: https://www.imageen.com/ieforum/topic.asp?TOPIC_ID=2144

I have the scanner TW-Brother ADS-4300N.
Go to Top of Page

RudBus

Canada
9 Posts

Posted - Feb 26 2025 :  14:17:30  Show Profile  Reply
The problem with GetFromScanner in the OnAcquireBitmap is that it won't do anything since the IsInsideTwain is True. I could not find a better place to call it. So what I did instead is I added this right before the MultiCallBack call in the IETW_XferReadyMulti method from the unit imscan:
if grec.TWParams.DuplexSupported and GetOneBool(grec, lDuplexEnabled, CAP_DUPLEXENABLED) then
grec.TWParams.DuplexEnabled := lDuplexEnabled;

I got the version 10.3.0.18.9765 so things might be different in a newer release.
Go to Top of Page

xequte

38944 Posts

Posted - Feb 26 2025 :  20:50:14  Show Profile  Reply
Hi

Yes, that's correct. You cannot modify the scanner properties during an acquisition.



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