tmyroadctfig / twaindotnet

MIT License
180 stars 117 forks source link

Way to Set Default Scanner w\o GUI #41

Open Clebam opened 7 years ago

Clebam commented 7 years ago

Hi Guys,

I'm trying to figure out how to Set Default Scanner without using the GUI.

I read this post: https://stackoverflow.com/questions/16555951/setting-default-twain-data-source-without-using-api-ui-menu

But I don't know how I can use DSM 2.0 and add it to TwainDotNet DataSourceManager.

I'm stuck with it, so if anyone has any idea.

Maybe I'm going the wrong way, so if there is another way to hide the GUI. (I want the user to use my own GUI)

Clebam commented 7 years ago

This is the solution: Editing Registry

See link below: http://www.gssezisoft.com/main/2013/03/using-cmdtwain-with-multiple-scanners/

I wish a method were set in twaindotnet to do so :)