Source not detected in 64 bit - pls help

Discussions about TWAIN & WIA scanning in GdPicture.NET using GdPictureImaging.
Post Reply
suresh82
Posts: 4
Joined: Fri Feb 28, 2014 3:20 pm

Source not detected in 64 bit - pls help

Post by suresh82 » Sat May 10, 2014 6:39 pm

Hi,
I could not able to scan the document in x64 bit (working fine in x86) because of source is not detected while am using GdPicture.NET.9.twain.client.64 dll (6.5.0.6) and GdPicture.NET.9
(9.0.0.10). Here I shared my code lines for your analysis. Kindly do the needful ASAP please.

for 32 bit - x86 (working fine)

gdPictureImaging.TwainSetHideUI(!showUI);
gdPictureImaging.TwainSetIndicators(true);
gdPictureImaging.TwainSetBrightness(brightNess);
gdPictureImaging.TwainSetContrast(1000);
gdPictureImaging.TwainEnableDuplex(false);
if (gdPictureImaging.TwainGetSourceCount(Handle) > 1)
{
return gdPictureImaging.TwainSelectSource(Handle);
}
var sourceName = gdPictureImaging.TwainGetDefaultSourceName(Handle);
WriteLog(sourceName); //WIA-hp scanjet 5590 - Working fine
return !string.IsNullOrWhiteSpace(sourceName) || gdPictureImaging.TwainSelectSource(Handle);

for 64 bit - x64 (Not working)

gdPictureImaging.TwainSetHideUI(!showUI);
gdPictureImaging.TwainSetIndicators(true);
gdPictureImaging.TwainSetBrightness(brightNess);
gdPictureImaging.TwainSetContrast(1000);
gdPictureImaging.TwainEnableDuplex(false);
if (gdPictureImaging.TwainGetSourceCount(Handle) > 1)
{
return gdPictureImaging.TwainSelectSource(Handle);
}
var sourceName = gdPictureImaging.TwainGetDefaultSourceName(Handle);
WriteLog(sourceName); //empty - Identified Not working
return !string.IsNullOrWhiteSpace(sourceName) || gdPictureImaging.TwainSelectSource(Handle);

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

Re: Source not detected in 64 bit - pls help

Post by SamiKharma » Sun May 11, 2014 12:46 pm

Hi,

Please make sure that you are accessing the Twain64 bit drivers of the scanner you are connecting to.
That being said, unfortunately, most scanners do not have correctly implemented 64 bit drivers. This is beyond the control of GdPicture. For Twain, it is always better to stick with 32 bit because those are usually the correctly implemented drivers.

Best,
Sami

suresh82
Posts: 4
Joined: Fri Feb 28, 2014 3:20 pm

Re: Source not detected in 64 bit - pls help

Post by suresh82 » Mon May 12, 2014 1:11 pm

Thanks Sami, it was very helpful.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests