Home › Forums › TWAIN Classic › How to activate the scanner without using the driver GUI
- This topic has 1 reply, 2 voices, and was last updated 12 years, 11 months ago by dpenney.
- AuthorPosts
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
@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 http://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.
–- AuthorPosts