This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Saturday, November 24, 2012 7:39:05 PM(UTC)
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
#2
Posted
:
Saturday, November 24, 2012 7:55:12 PM(UTC)
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)
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)
Groups: Registered
Posts: 13
But I want to do the same in C# ...
#5
Posted
:
Monday, November 26, 2012 6:36:22 AM(UTC)
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.
#6
Posted
:
Monday, November 26, 2012 10:47:44 AM(UTC)
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)
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.