Home › Forums › TWAIN Classic › Multi Scanning
- This topic has 7 replies, 7 voices, and was last updated 16 years, 10 months ago by jnsoneji.
- AuthorPosts
Hi Guys,
I am new to twain. I need to develop multi scanning support (ADF – Automatic Document Feeder) from application.
Does anyone have sample code written in C++? Could anyone help me on this?
Thanks in Advance
MattI’m new to C++, but I’ve done a bit of TWAIN programming. If you haven’t seen it, take a look at http://www.codeproject.com/audio/twaintest.asp, which is a TWAIN wrapper class in C++. I can’t give you precise code, but when you get the idea of setting properties, you just have to set the ENABLEFEEDER property and scan normally.
-NARP
NARP,
Thanks for the link.
I have achieved the single scanning from c++.
I am looking for multi page scan support from the application.
If someone could help me on this? c++ program would be great if someone has it.
Thanks
Matt.Hello Matt,
What exactly is it that you are having problems with? The sample code from the TWAIN website achieves multipage scanning… are you trying to do something complicated?
If you are already scanning single pages without trouble, then simply add a loop that inspects the value of PendingXfers.Count after each call to DAT_PENDINGXFERS/MSG_ENDXFER call.
ie:
do
{
GetImageInfo();
GetMemoryTransfer();
}while(PendingXfers.Count != 0);Best Regards,
Jon HarjuCan I scan with FILETRANSFER mode to multipage TIFF?
When I use loop with “DG_IMAGE/DAT_IMAGEFILEXFER/MSG_GET”
while “DG_CONTROL/DAT_PENDINGXFERS/MSG_ENDXFER” count!=0
it scans from ADF properly but output TIFF is overriden every page…any hints? Thanks
At FILETRANSFER MODE the DS is responsible for the file creation. Usually you can not control it from the APP side. Ask the DS vendor.
Kaij
@tomlin wrote:
Can I scan with FILETRANSFER mode to multipage TIFF?
depends on your device.
execute ‘Icap_ImageFileFormat /Get’ to determine if tiffMultipage is supported by your device,@tomlin wrote:
but output TIFF is overriden every page…
any hints?are you executing ‘SetupFileTransfer / Set’ and passing in a different filename each time, just before you execute ‘ImageTransfer / Get’ in that loop?
dear friends, it works with all scanners but problems iwth fujitsu scanner as i get only one page as result, any reference document to be seen.
thanks,- AuthorPosts