Just got a bit of an issue with the TwainShowSetupDialogSource function. Below is the code:
- Code: Select all
Private Sub cmdSetupSource_Click()
If Not Imaging1.TwainGetState = TWAIN_SOURCE_OPEN Then
MsgBox "You need to open a source first!", vbExclamation, "Error"
Else
If Not Imaging1.TwainShowSetupDialogSource() Then
MsgBox "Cannot display scanner configuration", vbExclamation, "Error"
End If
End If
End Sub
Now what is happening is as follows:
The code reaches the function call and returns false; I query the ResultCode and ConditionCode (within the immediate window in VB) and both return 0 (Success).
And of course the dialog is not shown.
Variations on this is passing the current window handle. This locks up the application by not returning control to the window passed.
This is using the latest GDPicturePro5 (released Feb 2010).
Occurs on HP Officejet 5610 using it's Twain driver (WIA is available as well), not sure of the version specifically, but HP has no updates for it, source name appears as "HP Officejet 5600 #2 TWAIN 1.0 (32-32)"
Also occurs on PlusTek OpticSlim M12 Plus (Source Name: OpticSlim M12 3.0 (32-32).
Thanks in advance.
Aaron
