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

How do I hardcode a scanner into my program

Forums › TWAIN Classic › How do I hardcode a scanner into my program

  • This topic has 1 reply, 2 voices, and was last updated 11 years, 6 months ago by Kaij.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • July 7, 2009 at 6:35 pm #22509 Reply
    ScannerProgrammer
    Participant
    • Topics - 7
    • Replies - 9
    • Total Posts - 16

    I want to be able to hardcode a scanner and its settings into my program. The users will only use one set scanner and I want to have that single scanner selected and open upon startup of the program.

    I do not want the user messing with controls and giving them the ability to select anything. Just open the program, scan documents, submit them and close the program. How do I do this

    July 9, 2009 at 7:11 pm #24932 Reply
    Kaij
    Participant
    • Topics - 9
    • Replies - 132
    • Total Posts - 141

    This is basically no problem. Open a DS with a known name via DG_CONTROL / DAT_IDENTITY / MSG_OPENDS. Make sure that you set in TW_USERINTERFACE ShowUI to FALSE. Than just negotiate the capabilities you like to set.

    The easy way is of course to use a 3rd party tool as we or others from the vendor list offer and call just:

    twaincom c:test.jpg -r 300 -monochrome -paperformatusletter -usedriver “HP ScanJet 5500 Series” -o -p

    Depends how much time you are willing to spend on TWAIN insides.

    Best regards,

    Kaij

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How do I hardcode a scanner into my program
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

  • EPSON V600 TWAIN and WIA on Windows 10
  • When and how to use WaitForEvents command ?
  • Problem enumerating list of installed scanners in windows server 2012
  • Failed to create TWAIN progress! Error code is 1260.
  • To get the list of scanners from javascript client side (browser)
  • 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.