November 17, 2007 at 11:24 am #22243
i am currently developing a scan application using twain and want to save batch scanned files at runtime (during scanning)
anybody here knows how this can be achieved.??November 18, 2007 at 5:49 am #24172
I think most posts here are related to projects saving images at runtime,.. that is a standard requirement for scanning software.
Where are you having trouble?November 20, 2007 at 8:06 am #24173
i want to save multiple pages, 100 pages per minute lets say,
so far the applictation i developed will save only 1 page, but where can i go from an interface i developed that asks for location where to save and what type to save (jpg or tiff).
how will the application get the multiple images and save it where we want, will i be bringing the twain dialog every time, or one time or not at all ?
these things i need to know pls reply.November 20, 2007 at 8:13 am #24174
depending on your transfer method (and assuming file transfer here just for kicks) you’d want to loop around your Control/SetupFileXfer/Set(SetupFile) &
Image/ImageFileXfer/Get triplets where you stay in the loop until Control/PendingXfers/EndXfer(pxfr) says that there are no images left or until you get a failure (typical when when the device doesn’t known the paper count)
.November 20, 2007 at 9:36 am #24175
yes, wants to start of first.
from control to image and then saving every image at runtime to the directory mensioned by user earlier in a dialog.
which functions and attributes will be used and a little descrioption also plsssss.
will be very greatful. thanksNovember 20, 2007 at 9:41 am #24176
I’m not sure I understand, ask that again with different words.November 20, 2007 at 10:07 am #24177
i want to “scan and save” multiple images: saving every image as it is scanned.
how shall i know that one image is scanned, now its second image’s turn? and so on.
i want to select the settings one time:
. save directory
. image type
. color type
then wants to just click once on scan and it will start scanning and saving(runtime saving, indexed in the disk) all the images.November 20, 2007 at 10:37 am #24178
i m not sure which mode i will use ? buffered or disk file mode seems to be better than native.
disk file seems to be even better for the applictaion, but i want to speed up also, so what do u say ?
buffer mode or disk file mode ?
i m not sure which to implement. what do u sujjest to be done ??? waiting for reply.November 23, 2007 at 3:52 am #24179
- Topics - 1
- Replies - 1
- Total Posts - 2
I also want to ask the same question.
One page with one message posted will certainly slow down the scanner.November 28, 2007 at 10:05 pm #24180
>> how shall i know that one image is scanned, now its second image’s turn?
you get a message, xferdone (in file and native mode) something else in buffered (I don’t use buffered mode). take a look thru the twain toolkit or better yet – step thru dosadi’s ctwain source.November 29, 2007 at 9:09 am #24181
ok we have passed through the multiple scan thing.
now there comes another problem.
when i scan in duplex mode and save in tiff format, the application should save both sides of the scanned paper (2 pages) in one tif file, but it makes two seperate tif files.
how can i make adjustment to do that way,
seems like i have to go inside hearder of tif or something ? pls help. thanksNovember 29, 2007 at 9:32 am #24182
multi image tiff isn’t define with in the current 1.9 twain spec.
if you want mulditi image tif files you’ll have to play with gdi/gdi+
the opentwain project does this in .net if you’re looking for a .net sample.
.November 30, 2007 at 7:26 am #24183
yes we r working in .net in vc, pls identify where we can get help in opentwain, thanksNovember 30, 2007 at 7:29 am #24184
for help working with opentwain you ask me or ask on the project’s homepage or here or send me an email or open a chat ..
.December 6, 2007 at 10:13 am #24185
helo, is there any variable in CTWAIN that we can use as a flag to identify that whether the user selected simplex(single side scanned) or duplex(both sides scanned) or flat bed in the twain acquire dialog of scanner.