Twain source not being read
Posted: Tue Jan 21, 2014 11:23 am
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
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