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?
Accessing Enumerations from WebApps
Moderator: Alex
-
- Site Admin
- Posts: 2397
- Joined: Thu Jul 10, 2008 2:21 pm
Re: Accessing Enumerations from WebApps
Hello,
Your way is correct - you should set capability's values as integer numbers.
Best regards, Alexander
Your way is correct - you should set capability's values as integer numbers.
Best regards, Alexander
-
- Posts: 3
- Joined: Tue Sep 22, 2009 9:14 am
Re: Accessing Enumerations from WebApps
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.
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.
-
- Site Admin
- Posts: 2397
- Joined: Thu Jul 10, 2008 2:21 pm
Re: Accessing Enumerations from WebApps
We will add information about integer values of enumerations to documentation in next version of the product. Thank you for suggestion.
Best regards, Alexander
Best regards, Alexander