Acquire without Twain Driver dialog

Discussions about TWAIN & WIA scanning in GdPicture.NET using GdPictureImaging.
Post Reply
reynolds

Acquire without Twain Driver dialog

Post by reynolds » Fri Feb 01, 2008 4:47 am

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.

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Acquire without Twain Driver dialog

Post by Loïc » Fri Feb 01, 2008 12:22 pm

Hi,
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?
You have just to call the TwainSetHideUI method like this:

Code: Select all

object.TwainSetHideUI(True)
https://www.gdpicture.com/references/gdt ... ideUI.html


Also, I need to know how to set the data source without having to display the Select Source dialog, as the TwainSelectSource method does.
You can list all the twain devices like that :

Code: Select all

For i = 1 To object.TwainGetSourceCount
       MsgBox object.TwainGetSourceName(i)
Next i
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:

Code: Select all

object.TwainOpenSource ("Your source name")
https://www.gdpicture.com/references/gdt ... ource.html


Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests