Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Saturday, November 24, 2012 7:39:05 PM(UTC)

Aarsh  
Aarsh

Groups: Registered
Posts: 13


Hi, I am looking forward for some demo example for getting started with scanning multiple pages.

Which should allow :

Scanning a new document,
appending page(s) to an existing document,
removing selected page from the existing document,
replacing page(s) with newly scanned page(s) from the existing document.

Please help, thanks
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Saturday, November 24, 2012 7:55:12 PM(UTC)

Aarsh  
Aarsh

Groups: Registered
Posts: 13


I would be glad to see some implementation of :
http://www.leadtools.com/help/leadtools/v16/twain/clib/dllsteps/leadtoolsprogramming.htm
 
#3 Posted : Sunday, November 25, 2012 6:55:44 AM(UTC)

Daoud  
Daoud

Groups: Registered
Posts: 256


Arash,
To scan you should do the following:
1)  Use TwainSession.SelectSource to select the scanner driver
2) Use TwainSession.Aquire to scan the images
3) Handle the aquirepage event to receive the scanned images and save them to disk using RasterCodecs.Save.

Also, please take a look at our scanning tutorials that are in our help files installed with the toolkit and see "Acquiring an Image" tutorial.

 
#4 Posted : Sunday, November 25, 2012 7:01:37 AM(UTC)

Aarsh  
Aarsh

Groups: Registered
Posts: 13


But I want to do the same in C# ...
 
#5 Posted : Monday, November 26, 2012 6:36:22 AM(UTC)

Daoud  
Daoud

Groups: Registered
Posts: 256


Aarsh,
From a different thread, we know you want this done in a console application. However, for Twain features to work, you must have a valid Window object in your project, because this is a Twain requirement.

As a minimum, you must create a window and make it hidden in your console application. This means you don't need to display it, but you will need it anyway.

I acquired a sample project from my colleague that does this. Please see attached project.

File Attachment(s):
CS_twain_consol.zip (6kb) downloaded 40 time(s).
 
#6 Posted : Monday, November 26, 2012 10:47:44 AM(UTC)

Aarsh  
Aarsh

Groups: Registered
Posts: 13


Daoud , thanks for your response. Iff you do not mind could you please post the steps that walks through the way you accomplished this ? Short and precise would be more than enough ... Thank you !
 
#7 Posted : Tuesday, November 27, 2012 3:55:35 AM(UTC)

Daoud  
Daoud

Groups: Registered
Posts: 256


Aarsh,
The attached project is very simple. Please open it and take a look at it.
However, the steps are:
1) Create a console application.
2) Add a Form.
3) Declare a TwainSession object inside the form.
4) Declare an object from the form.
5) Use the form object to call the Twain functions like acquire, select source..etc.

 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.477 seconds.