WiaEnableDuplex

Discussions about WIA scanning in GdPicture.NET using GdPictureImaging.
Post Reply
gdptester
Posts: 4
Joined: Tue Dec 03, 2013 5:44 pm

WiaEnableDuplex

Post by gdptester » Tue Dec 03, 2013 5:57 pm

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!

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: WiaEnableDuplex

Post by SamiKharma » Thu Dec 05, 2013 12:08 pm

Hi,

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

Best,
Sami

gdptester
Posts: 4
Joined: Tue Dec 03, 2013 5:44 pm

Re: WiaEnableDuplex

Post by gdptester » Thu Dec 05, 2013 12:32 pm

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!

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: WiaEnableDuplex

Post by SamiKharma » Thu Dec 05, 2013 1:09 pm

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

gdptester
Posts: 4
Joined: Tue Dec 03, 2013 5:44 pm

Re: WiaEnableDuplex

Post by gdptester » Thu Dec 05, 2013 2:41 pm

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!

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: WiaEnableDuplex

Post by SamiKharma » Sun Dec 08, 2013 12:01 pm

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

gdptester
Posts: 4
Joined: Tue Dec 03, 2013 5:44 pm

Re: WiaEnableDuplex

Post by gdptester » Mon Dec 09, 2013 5:38 pm

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!

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: WiaEnableDuplex

Post by SamiKharma » Tue Dec 10, 2013 11:27 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests