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
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
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.
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