HI - I am trying to get a vb.net application to acquire images from a range of Canon scanners (eg DR-C130, DR-G1100) without success. This is because I am unable to open the TWAIN data source manager. I have projects using other TWAIN libraries that work fine, so the computer's TWAIN setup is functional.
The gdpicture_twain.log contains the following:
#GdTwain Log Start. Version: 653
RC: TWRC_SUCCESS
CC: TWCC_SUCCESS
State: 1
-------------------
Start: OpenSourceManager.
RC: TWRC_SUCCESS
CC: TWCC_SUCCESS
State: 1
-------------------
custom DSM library can not be loaded from defined path: c:\windows\twain_32.dll
RC: TWRC_SUCCESS
CC: TWCC_SUCCESS
State: 1
-------------------
End: OpenSourceManager.
RC: TWRC_SUCCESS
CC: TWCC_SUCCESS
State: 1
-------------------
SelectImageSource: Unable to open Source Manager.
RC: TWRC_SUCCESS
CC: TWCC_SUCCESS
State: 1
-------------------
Start: OpenSourceManager.
RC: TWRC_SUCCESS
CC: TWCC_SUCCESS
State: 1
-------------------
custom DSM library can not be loaded from defined path: c:\windows\twain_32.dll
RC: TWRC_SUCCESS
CC: TWCC_SUCCESS
State: 1
-------------------
End: OpenSourceManager.
RC: TWRC_SUCCESS
CC: TWCC_SUCCESS
State: 1
-------------------
SelectImageSource: Unable to open Source Manager.
RC: TWRC_SUCCESS
CC: TWCC_SUCCESS
State: 1
-------------------
The vb code being used is as follows:
If m_GdPictureImaging.TwainOpenDefaultSource(Me.Handle) Then
MessageBox.Show("OK!")
Else
MessageBox.Show("Can't open default source, twain state is: " & m_GdPictureImaging.TwainGetState.ToString)
End If
I have downloaded TWAINDSM-2.3.0.win.bin from TWAIN.ORG, and copied the TWAINDSM.DLL file into c:\windows\sysWOW64.
I also copied the twain_32.dll file from c:\windows to c:\windows\system32.
I have verified that the DRC130.ds and DRG1100.ds Twain driver files appear under "C:\Windows\twain_32\Canon Electronics"
I am unable to find anything in the HTML gdpicture documentation that refers to "custom" DSM's as the above log file seems to refer to.
I am running Win7 Professional on a 64-bit laptop, and compiling in AnyCPU mode.
Any help appreciated!
thanks
Nick
Twain source not being read
Re: Twain source not being read
Hi Nick, sorry for the delay!
AnyCPU for TWAIN acquisition applications is definitely a bad idea because it will cause the 64-bit DSM to be probed on a 64-bit system and there is almost no real 64-bit TWAIN drivers out there.
Overwriting Windows dll files is also a bad idea because you cannot guarantee which version will be installed on which machine (it can make the deployment very tricky).
The good practice is indeed to explicitly target your application to x86 and provide the TWAIN DSM you need alongside the application (as a kind of dependency) and then use it with the TwainSetDSMPath method documented here : https://www.gdpicture.com/guides/gdpicture/web ... MPath.html
AnyCPU for TWAIN acquisition applications is definitely a bad idea because it will cause the 64-bit DSM to be probed on a 64-bit system and there is almost no real 64-bit TWAIN drivers out there.
Overwriting Windows dll files is also a bad idea because you cannot guarantee which version will be installed on which machine (it can make the deployment very tricky).
The good practice is indeed to explicitly target your application to x86 and provide the TWAIN DSM you need alongside the application (as a kind of dependency) and then use it with the TwainSetDSMPath method documented here : https://www.gdpicture.com/guides/gdpicture/web ... MPath.html
Re: Twain source not being read
Hi, I got a new scanner recently - Fujitsu-7160 -- and I am using GDPicture.Net 10.
I downloaded and installed the driver (32bit), but the scanner is not available to pick from GDImaging.
I also downloaded the latest TWAINDSM.dll but to no avail.
Please help.
Thanks
Dabi123
I downloaded and installed the driver (32bit), but the scanner is not available to pick from GDImaging.
I also downloaded the latest TWAINDSM.dll but to no avail.
Please help.
Thanks
Dabi123
Who is online
Users browsing this forum: No registered users and 1 guest