Home › Forums › All Things TWAIN › Changing TWAIN driver defaults
- This topic is empty.
- AuthorPosts
- MattH
I have an application running in a Citrix farm that is used by 300-ish people. There are four or five different scanner models in use, but they are all Canons (C240, M140, 2050C, etc) Before they can scan for the first time, they have to launch the scanner interface and downgrade the quality to 200dpi + Black and White or the application will timeout and I will need to terminate their Citrix session. Once those settings are selected, they persist, however … If a User opens an application like Acrobat Pro and scans from there using the default settings of the driver, they will once again have to change the settings in the Citrix app. Which they forget to do. Constantly.
Is there a way (preferably using powershell or command scripts) to change the TWAIN driver defaults so that my app, and Acrobat (and whatever other scan app is being used) will just pick those up and Users won’t have to be manually changing scan preferences?
MarkMThere are two registry entries on Windows for applications that follow the Specification and use the TWAIN DSM to report the default. The value is collected by the DSM and reported back to the application through the DG_CONTROL / DAT_IDENTITY / MSG_GETDEFAULT operation.
For 32-bit applications (using TWAIN_32.DLL or TWAINDSM.DLL, it doesn’t matter) set:
key: Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\TWAIN\Default Source
value: C:\Windows\twain_32\(rest of path to desired .ds file)For 64-bit applications set:
key: Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows NT\CurrentVersion\TWAIN64\Default Source
value: C:\Windows\twain_64\(rest of path to desired .ds file)thaykinhtinlongI have an application running in a Citrix farm that is used by 300-ish people. There are four or five different scanner models in use, but they are all Canons (C240, M140, 2050C, etc) Before they can scan for the first time, they have to launch the scanner interface and downgrade the quality to 200dpi + Black and White or the application will timeout and I will need to terminate their Citrix session. Once those settings are selected, they persist, however … If a User opens an application like Acrobat Pro and scans from there using the default settings of the driver, they will once again have to change the settings in the Citrix app. Which they forget to do. Constantly.
note : https://tinlongmobile.com/
Is there a way (preferably using powershell or command scripts) to change the TWAIN driver defaults so that my app, and Acrobat (and whatever other scan app is being used) will just pick those up and Users won’t have to be manually changing scan preferences?Kevin NealHello thaykinhtinlong,
You asked:
“Is there a way (preferably using powershell or command scripts) to change the TWAIN driver defaults so that my app, and Acrobat (and whatever other scan app is being used) will just pick those up and Users won’t have to be manually changing scan preferences?”
One way we might suggest using scanners consistently within your Citrix environment is to consider a TWAIN Direct application with your ‘fixed’ scanner settings of 200dpi + Black and White (or whatever you want actually). This way the users are not inconvenienced because the settings are already set and cannot be changed unless you allow this as an administrator.
One of the other advantages of using TWAIN Direct with Citrix is that because TWAIN Direct is a web services API, the networking requirements are much simpler because all that’s needed is a network connection.
We would be glad to help on your project.
- AuthorPosts