Detect document put into the FLATBED scanner...

Questions, comments and suggestions concerning VintaSoft Twain .NET SDK.

Moderator: Alex

Post Reply
bharate.umesh
Posts: 20
Joined: Thu Dec 31, 2009 1:27 pm
Contact:

Detect document put into the FLATBED scanner...

Post by bharate.umesh » Thu Jan 28, 2010 10:37 am

Hello Alexey,

For ADF scanner, thrugh the following code we come to know whether the documents are loaded or not.

And FeederPresent property determines if the device has automatic document feeder.

If VSTwain1.FeederPresent Then
VSTwain1.FeederEnabled = true
VSTwain1.AutoFeed = true
VSTwain1.XferCount = -1
If VSTwain1.FeederLoaded Then
VSTwain1.Acquire()
Endif
Endif

But suppose, if I haven't put any document into the FLATBED scanner, does above code will work?

Please specify a code for FLATBED scanner.

Thanks,Umesh

Alex
Site Admin
Posts: 1443
Joined: Thu Jul 10, 2008 2:21 pm

Re: Detect document put into the FLATBED scanner...

Post by Alex » Tue Feb 02, 2010 10:06 am

Hello Umesh,

You can determine the type of scanner with the FlatbedPresent and FeederPresent properties, please read the documentation for more info.

Best regards, Alexander

bharate.umesh
Posts: 20
Joined: Thu Dec 31, 2009 1:27 pm
Contact:

Re: Detect document put into the FLATBED scanner...

Post by bharate.umesh » Tue Feb 02, 2010 11:16 am

Yes. I already got the solution reading upon your documentation.

Thanks,Umesh

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest