Home | Translator | About us | Overview | Software - Download | Evaluate | Order | Support | Contact | F.A.Q. | Documentations | Blog | Newsletter | Site Content Search
Loading...

TwainShowSetupDialogSource Issue

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

TwainShowSetupDialogSource Issue

Postby FlowBiz » Thu Mar 04, 2010 3:52 am

Hey guys,

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
FlowBiz
 
Posts: 5
Joined: Thu Mar 04, 2010 3:04 am

Re: TwainShowSetupDialogSource Issue

Postby Loïc » Thu Mar 04, 2010 11:49 am

Hi Aron,

Please follow this procedure for investigations: announces/twain-acquisition-issues-t1486.html

With best regards,

Loïc
User avatar
Loïc
Site Admin
 
Posts: 3444
Joined: Tue Oct 17, 2006 11:48 pm
Location: France

Re: TwainShowSetupDialogSource Issue

Postby FlowBiz » Fri Mar 05, 2010 7:18 am

Hi Loic,

I have followed the steps mentioned in that other post.

That I'm aware of, I inadvertently missed my operating system (Vista 32bit) and the log.

I entered the TwainStartLog as suggested but none was actually generated in the path provided.

Thanks

Aaron
FlowBiz
 
Posts: 5
Joined: Thu Mar 04, 2010 3:04 am

Re: TwainShowSetupDialogSource Issue

Postby Loïc » Fri Mar 05, 2010 10:43 am

Hi Aron,

We are waiting for a standalone code & LOG to be able to reproduce the exact same condition of your side.

Well, if I run the code you gave me I have a simple messagebox displayed saying "You need to open a source first!"

With best regards,

Loïc
User avatar
Loïc
Site Admin
 
Posts: 3444
Joined: Tue Oct 17, 2006 11:48 pm
Location: France

Re: TwainShowSetupDialogSource Issue

Postby FlowBiz » Thu Mar 11, 2010 4:13 am

Hey Loic,

I created a standalone app so I could reproduce the situation there. After having done so, I investigated the Log it created and it came up with that functionality not being supported by the driver. Entry below for reference. I'll add some check capability into my app. I have just had a look however, and can't actually find a Test Capability that would test for this specific thing. Which cap do I test for?

Aaron

Code: Select all
-------------------
SourceSetup: Not supported by driver.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
Start: CloseSource.
FlowBiz
 
Posts: 5
Joined: Thu Mar 04, 2010 3:04 am


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest