Page 1 of 1

WiaEnableDuplex

Posted: Tue Dec 03, 2013 5:57 pm
by gdptester
Hi,

how can I enable the Wia Duplex Scan? I have tried the following code without success:
...
oGdPictureImaging.WiaEnableDuplex(true);
oGdPictureImaging.WiaSelectFeeder(true);
do
{
ImageID = oGdPictureImaging.WiaAcquireToGdPictureImage();
if (ImageID != 0)
...

Thank you!

Re: WiaEnableDuplex

Posted: Thu Dec 05, 2013 12:08 pm
by SamiKharma
Hi,

Please check the return status of the function: WiaEnableDuplex. If the result is false, please use WiaGetLastError to diagnose the problem.

Best,
Sami

Re: WiaEnableDuplex

Posted: Thu Dec 05, 2013 12:32 pm
by gdptester
Hi Sami,

the result of WiaEnableDuplex is true and WiaGetLastError returns WIA_OK.
The Problem is that WiaAcquireToGdPictureImage() only acquires the front side.

The same scanner (Kodak i1120) can scan Duplex with GdPicture Twain and with Windows Fax&Scan also Duplex is possible with this Scanner using Wia.

Thank you!

Re: WiaEnableDuplex

Posted: Thu Dec 05, 2013 1:09 pm
by SamiKharma
Hi,

Unfortunately, WIA is usually poorly implemented and when TWAIN is available this is what should be used especially with document feeder where WIA never works as expected.
Please see point 4 in the following topic: viewtopic.php?t=1486

Best,
Sami

Re: WiaEnableDuplex

Posted: Thu Dec 05, 2013 2:41 pm
by gdptester
Hi,

Unfortunately, I have to implement a running solution for both Twain and Wia. I have tried this:

if(oGdPictureImaging.WiaIsDuplexAvailable())
if(oGdPictureImaging.WiaIsDuplexEnabled() == false)
if(oGdPictureImaging.WiaEnableDuplex(true) == false)
rc = (int) oGdPictureImaging.WiaGetLastError();
else
if (oGdPictureImaging.WiaIsDuplexEnabled() == false)
rc = (int)oGdPictureImaging.WiaGetLastError();

The second WiaIsDuplexEnabled() returns true, so WiaEnableDuplex(true) seem to do something.

How do I have to proceed if WiaAcquireToGdPictureImage() is not scanning the back side? What else can I try?

Thank you!

Re: WiaEnableDuplex

Posted: Sun Dec 08, 2013 12:01 pm
by SamiKharma
Hi,

Again, unfortunately the WIA protocol has problems controlling the document feeder and using it. If you have Twain I highly suggest you use it.
Unfortunately this is out of the control of GdPicture.

Best,
Sami

Re: WiaEnableDuplex

Posted: Mon Dec 09, 2013 5:38 pm
by gdptester
Hi Sami,

if Windows Fax and Scan can scan Duplex with WIA on the same scanner, the bug has to be either in GdPicture or in my code. Is there any sample code for WiaEnableDuplex available? My code only acquires the front page:
...
oGdPictureImaging.WiaEnableDuplex(true);
do
{
ImageID = oGdPictureImaging.WiaAcquireToGdPictureImage();
...

Thank you!

Re: WiaEnableDuplex

Posted: Tue Dec 10, 2013 11:27 am
by SamiKharma
Hi,

This issue would require further investigation. Please supply us with a code that recreates the problem and the problem only and attach it to a support ticket with explanation of the issue at our support platform:
http://support.orpalis.com/

Best,
Sami