I want to be able to scan without displaying the Twain Driver dialog. I just want hitting the button to make it start scanning with no detours. Is there another function besides TwainAcquireToImageID that just does the scan?
Also, I need to know how to set the data source without having to display the Select Source dialog, as the TwainSelectSource method does.
Acquire without Twain Driver dialog
Re: Acquire without Twain Driver dialog
Hi,
https://www.gdpicture.com/references/gdt ... ideUI.html
https://www.gdpicture.com/references/gdt ... Count.html
https://www.gdpicture.com/references/gdt ... eName.html
Then, you can open the desired device like that:
https://www.gdpicture.com/references/gdt ... ource.html
Loïc
You have just to call the TwainSetHideUI method like this:I want to be able to scan without displaying the Twain Driver dialog. I just want hitting the button to make it start scanning with no detours. Is there another function besides TwainAcquireToImageID that just does the scan?
Code: Select all
object.TwainSetHideUI(True)
You can list all the twain devices like that :Also, I need to know how to set the data source without having to display the Select Source dialog, as the TwainSelectSource method does.
Code: Select all
For i = 1 To object.TwainGetSourceCount
MsgBox object.TwainGetSourceName(i)
Next i
https://www.gdpicture.com/references/gdt ... eName.html
Then, you can open the desired device like that:
Code: Select all
object.TwainOpenSource ("Your source name")
Loïc
Who is online
Users browsing this forum: No registered users and 1 guest