TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

Changing TWAIN driver defaults

Forums › All Things TWAIN › Changing TWAIN driver defaults

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • March 4, 2021 at 1:23 pm #66164 Reply
    MattH
    • Topics - 102
    • Replies - 197
    • Total Posts - 299

    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?

    March 8, 2021 at 10:15 am #66645 Reply
    MarkM
    • Topics - 102
    • Replies - 197
    • Total Posts - 299

    There 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)

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Changing TWAIN driver defaults
Your information:




Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • TWAIN for dental imaging integration
  • PDF/R For who and where?
  • Making searchable PDF with PDF/R
  • Backward compatibility with PDF/A and traditional PDF
  • could not open the twain source. Make sure there is a valid source for your sca
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.