Home › Forums › TWAIN Classic › can data source provide list of scanners
- This topic has 3 replies, 3 voices, and was last updated 12 years, 2 months ago by Vankir.
- AuthorPosts
Hi All,
Data source returns information about it in TW_IDENTITY.
Can data source return several TW_IDENTITY to let DSM show several models in the list of data sources?
For example I have superdriver.ds and would like to present several scanners in select data source dailog like followingCanon DS with super driver
Fujitsu DS with super driver
etcThank you!
Hi,
You can use DG_CONTROL / DAT_IDENTITY / MSG_USERSELECT to display the select source dialog box. The dialog displays a list of all Sources that are installed on the system that can provide data of the type specified by the application. You can check out the the specification for detailed information.
http://twain.org/docs/TWAIN_2_1_Spec.pdf___________________
Adam
Dynamsoft: version control software and TWAIN SDK@Vankir wrote:
Can data source return several TW_IDENTITY to let DSM show several models in the list of data sources?
For example I have superdriver.ds and would like to present several scanners in select data source dailog like following…TWAIN does not support that.
Your best bet is to do what scanner vendors do when providing a single DS to support many models. They return a somewhat generic name (e.g. “ScanWizard”) in the identity struct and then provide UI when their DS is enabled to allow the user to select a specific scanner.
–Thank you all for your help.
I know that ISIS allows getting list of models from driver and thought there was something similar in TWAIN. It looks I will have to implement some tricks to emulate necessary behaviour and provide some kind of proxy TWAIN driver for every other TWAIN drivers in the system.
- AuthorPosts