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 ?
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?
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
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.