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 to activate the scanner without using the driver GUI

Forums › TWAIN Classic › How to activate the scanner without using the driver GUI

  • This topic has 1 reply, 2 voices, and was last updated 9 years, 9 months ago by dpenney.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • April 15, 2011 at 2:11 pm #22678 Reply
    VBCoder68
    Participant
    • Topics - 1
    • Replies - 0
    • Total Posts - 1

    I’m working on an app that needs to set up a scanner and start it. I know that you can show the driver window with this code and require the user to click the scan button on it.


    Dim guif As TwUserInterface = New TwUserInterface()
    guif.ShowUI = 1
    guif.ModalUI = 1
    guif.ParentHand = hwnd
    rc = DSuserif(appid, srcds, TwDG.Control, TwDAT.UserInterface, TwMSG.EnableDS, guif)
    If (rc <> TwRC.Success) Then
    CloseSrc()
    Return
    End If

    But, how do you start the scanner without having to display the driver window to the user?

    Thanks,

    Mike

    April 15, 2011 at 4:27 pm #25427 Reply
    dpenney
    Participant
    • Topics - 3
    • Replies - 66
    • Total Posts - 69

    @VBCoder68 wrote:

    …how do you start the scanner without having to display the driver window to the user? Thanks, Mike

    The TWAIN specification has a detailed answer to your question. Take a look at the section titled “Alternatives to Using the Source’s User Interface” In chapter 4.

    You’ll need to become familiar with the specification in order to use advanced features like suppressing the UI. There is a lot of good information in there. Also, be sure to go over the FAQ https://www.twain.org/faqs.shtm for some of the more common questions. Then, if you’re still stuck post a question and we’ll see if we can help.

    Good luck.
    –

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How to activate the scanner without using the driver GUI
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.