Forum 'VintaSoft Twain .NET SDK Discussions'

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

Board index < VintaSoft Twain < VintaSoft Twain .NET SDK Discussions

Login

Accessing Enumerations from WebApps



Accessing Enumerations from WebApps

Post by SPASA2009 »

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?


Re: Accessing Enumerations from WebApps

Post by Alex »

Hello,

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

Best regards, Alexander


Re: Accessing Enumerations from WebApps

Post by SPASA2009 »

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.


Re: Accessing Enumerations from WebApps

Post by Alex »

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

Best regards, Alexander


Page 1 from 1: 1