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
 Duplex scanning with IEJoinBitmaps: the image does not print back on 2 pages

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
RudBus Posted - Feb 25 2025 : 08:57:39
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 ?
4   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Feb 26 2025 : 20:50:14
Hi

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



Nigel
Xequte Software
www.imageen.com
RudBus Posted - Feb 26 2025 : 14:17:30
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.
RudBus Posted - Feb 26 2025 : 08:41:47
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.
xequte Posted - Feb 25 2025 : 13:50:40
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