Home › Forums › TWAIN Classic › saving batch scanned files
- This topic has 18 replies, 4 voices, and was last updated 14 years, 4 months ago by HOHXP.
- AuthorPosts
hello,
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.??
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?
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.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).
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. thanksI’m not sure I understand, ask that again with different words.
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 typethen wants to just click once on scan and it will start scanning and saving(runtime saving, indexed in the disk) all the images.
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.
I also want to ask the same question.
One page with one message posted will certainly slow down the scanner.>> 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.
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. thanksmulti 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.
.
yes we r working in .net in vc, pls identify where we can get help in opentwain, thanks
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 ..
.
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.
- AuthorPosts