Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help
in

Capabilitiy Enum values

Last post 01 Dec 2007, 10:44 AM by Glenn. 5 replies.
Sort Posts: Previous Next
  •  26 Nov 2007, 5:06 PM 12801

    Capabilitiy Enum values

    Used SaveXmlParameters(fs) to save parameters to an XML file. Would you please tell the meaning of value 33024, 33797 and 32798? Where do they come from?

    Except these three values, all other values could be found in enum DeviceCapability.

  •  26 Nov 2007, 5:25 PM 12804 in reply to 12801

    Re: Capabilitiy Enum values

    Numbers like that are custom driver features.  We have no way of knowing what they are for.

    Glenn Chittenden Jr.
    Atalasoft Development Team
  •  27 Nov 2007, 8:22 AM 12808 in reply to 12804

    Re: Capabilitiy Enum values

    Thanks for reply. 

    Our project needs to set pre-defined scanner parameters. How does SaveXmlParameters(fs) work to generate these numbers? Our design is to add pre-defined parameters to the XML file generated by SaveXmlParameters(fs) and then load them using LoadXmlParameters(fs). Is there a better way to do this? 

    Thanks, 

     

  •  27 Nov 2007, 4:41 PM 12814 in reply to 12808

    Re: Capabilitiy Enum values

    We do not generate those numbers; the driver provides them.  It's better to change the property settings for the device and then use SaveXmlParameters instead of modifying the XML directly.  You never know when making one change will affect some other capability.

    Glenn Chittenden Jr.
    Atalasoft Development Team
  •  28 Nov 2007, 8:20 AM 12816 in reply to 12814

    Re: Capabilitiy Enum values

    Thanks for the reply.

    So, without using the XML file and load it using LoadXmlParameters(fs), how can we set pre-defined parameters to a scanner? Thanks a lot.

  •  01 Dec 2007, 10:44 AM 12824 in reply to 12816

    Re: Capabilitiy Enum values

    What do you mean by "pre-defined parameters"?  If you are talking about profile settings that can be selected from a list in the driver interface, TWAIN does not have anyway to access those.  If you are simply talking about the user changing settings and then saving those settings to file so you can load them later, using the Load and Save methods will work fine.

    To me it sounds like you are trying to manually modify the XML file after saving it in order to change the settings later.  This is not a good idea since each scanner is different and support different capabilities.  What you might want to do is just have a list of general settings that the user can save, then when they want to scan with a specific setup you would set the properties just before you call Acquire. 


    Glenn Chittenden Jr.
    Atalasoft Development Team
View as RSS news feed in XML