Accessing Enumerations from WebApps

Questions, comments and suggestions concerning VintaSoft Twain .NET SDK.

Moderator: Alex

Post Reply
SPASA2009
Posts: 3
Joined: Tue Sep 22, 2009 9:14 am

Accessing Enumerations from WebApps

Post by SPASA2009 » Tue Sep 22, 2009 9:20 am

How do I access Enumerations from an ASP.NET Web application?

Example 1 currently just uses hardcoded numbers for capabilities, such as the following line:
VSTwain1.Capability = 4098; // FeederEnabled

How would I instead use the DeviceCapability enumeration in my javascript?

Alex
Site Admin
Posts: 1443
Joined: Thu Jul 10, 2008 2:21 pm

Re: Accessing Enumerations from WebApps

Post by Alex » Tue Sep 22, 2009 10:00 am

Hello,

Your way is correct - you should set capability's values as integer numbers.

Best regards, Alexander

SPASA2009
Posts: 3
Joined: Tue Sep 22, 2009 9:14 am

Re: Accessing Enumerations from WebApps

Post by SPASA2009 » Tue Sep 22, 2009 10:57 am

How can I easily get a full list of the values of ALL Enumerations? The values do not appear to be listed in the help documentation.

Am I expected to use the object browser to get the values? Or perhaps .NET Reflector to examine the dll?

I suggest the values are added to the documentation for easy reference...

Thanks.

Alex
Site Admin
Posts: 1443
Joined: Thu Jul 10, 2008 2:21 pm

Re: Accessing Enumerations from WebApps

Post by Alex » Thu Sep 24, 2009 8:17 am

We will add information about integer values of enumerations to documentation in next version of the product. Thank you for suggestion.

Best regards, Alexander

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests