Loading...

problems after upgrading

Support for GdTwain ActiveX and GdTwain Pro ActiveX/SDK.

problems after upgrading

Postby dcoffey » Thu Sep 11, 2008 10:01 pm

I had an application that worked fine with version gdipicpro 4
After I upgraded to version 5, this code broke.


snip---

While Imaging1.CreateImageFromTwain(Me.Handle.ToInt32) <> 0
nImageID = Imaging1.GetNativeImage
If nImageID <> 0 Then
count += 1
ImageNo = Setting.GetNextDocument
'' code to save documents ''''
end while


whats happening is this line ---
While Imaging1.CreateImageFromTwain(Me.Handle.ToInt32) <> 0
will not start scanning, it immediatly exits. with a 0


Ideas?
dcoffey
 
Posts: 7
Joined: Mon Feb 11, 2008 1:37 am

Re: problems after upgrading

Postby dcoffey » Thu Sep 11, 2008 10:07 pm

Okay, I further found this

Imaging1.TwainSetAutoFeed(True) 'Set AutoFeed Enabled
Imaging1.TwainSetAutoScan(True) 'To achieve the maximum scanning rate

If I remark out these lines it works, but I need autofeed to be working.
dcoffey
 
Posts: 7
Joined: Mon Feb 11, 2008 1:37 am


Return to GdTwain [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest