Loading...

GetCapabilities - Source Setup

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

GetCapabilities - Source Setup

Postby FlowBiz » Fri Mar 19, 2010 6:36 am

Hey all,

I've had a look within the documentation and have not found anything, but I'm wondering if there is a way in the API to determine if a Driver supports "TwainShowSetupDialogSource". My code logs the following when I attempt to use it.

Code: Select all
SourceSetup: Not supported by driver.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------


So is there a Capability I can test for prior to attempting to show the Dialog?

Aaron - FlowBiz
FlowBiz
 
Posts: 7
Joined: Thu Mar 04, 2010 2:04 am

Re: GetCapabilities - Source Setup

Postby Loïc » Mon Mar 22, 2010 9:59 am

Hi Aron,

This code should give you the solution !


Code: Select all
Private Function IsEnabledUIOnly() As Boolean
 If Imaging1.TwainGetState = 4 Then
    Dim nVal As Long
   
    Call Imaging1.TwainGetCapCurrentNumeric(CAP_ENABLEDSUIONLY, nVal)
    IsEnabledUIOnly = (nVal = 1)
 Else
   IsEnabledUIOnly = False
   MsgBox "DS must be open"
 End If
End Function


Let me know if you don't understand it.

With best regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4430
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: GetCapabilities - Source Setup

Postby FlowBiz » Tue Mar 23, 2010 2:50 am

Hi Loic,

This worked perfectly. Thanks.

Aaron - FlowBiz
FlowBiz
 
Posts: 7
Joined: Thu Mar 04, 2010 2:04 am


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest

cron