Loading...

Autofeed and AutoScan issues

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

Autofeed and AutoScan issues

Postby heard » Thu May 08, 2008 5:13 pm

Hi Loic,
I have started working with the twain functions and have a couple of issues. I have tried to resolve them by searching this forum but haven't had good luck.
I am using the Fujitsu 5120.

My issue is that my loop operation to feed multiple pages doesn't work unless I check the feeder after each 'CreateImageFromTwain'. My problem is that I cannot check the feeder unless I issue a 'TwainDisableSource' first. Is this normal? This scanner doesn't seem to know the feeder has pages after the first page feeds.

My other question is how to use the SetAutoScan. When I try to use it, the pages all feed really fast, but only one image is created. Can you point me to some sample code for this feature.

My gdtwain.dll is version 4,0,0,7.

Thanks!

Heard
heard
 
Posts: 78
Joined: Wed Jan 02, 2008 11:55 pm

Re: Autofeed and AutoScan issues

Postby Loïc » Thu May 08, 2008 8:49 pm

Hi Heard,

Did you tried to use the last edition of GdPicture Pro ?

It solve many problem with Fujutsu & HP scanners.

Please download the last edition and check the twain sample provided. It show how to acquire multiple page from a document feeder using the AutoScan mode.
Also, you can check the online vb sample: http://www.gdpicture.com/samples/acquir ... basic.html

Best regards,

Loïc Carrère
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4430
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Autofeed and AutoScan issues

Postby heard » Tue May 13, 2008 8:36 pm

Hi Loic,
I just downloaded the new version. Unfortunately, I can't test it very well because an old issue has returned. Specifically, it is crashing my application entirely. See my previous post about gdmemory issues. You had fixed something to do with terminate event at that time, but it looks like the problem is back.

Heard :cry:
heard
 
Posts: 78
Joined: Wed Jan 02, 2008 11:55 pm

Re: Autofeed and AutoScan issues

Postby Loïc » Wed May 14, 2008 9:46 am

Hi Heard,

Could you write me a tiny application (compiled) wich raise the terminsation problem you got and sent it to esupport(at) gdpicture (dot) com ?

This app. could help me a lot.

Best regards,

Loïc Carrère
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4430
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Autofeed and AutoScan issues

Postby heard » Thu May 15, 2008 3:30 pm

Hi Loic,
That would be difficult, because the RAD tool I use doesn't produce a compiled exe. I would have to send you the full run-time environment and I'm not sure how large that would be. I will try to do that if you think it will still help you.
Heard
heard
 
Posts: 78
Joined: Wed Jan 02, 2008 11:55 pm

Re: Autofeed and AutoScan issues

Postby Loïc » Thu May 15, 2008 3:38 pm

Hi Heard,

No problem. I am ready to install the run time.

However, did you tried the 5.4.1 edition ?

Best regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4430
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Autofeed and AutoScan issues

Postby heard » Thu May 15, 2008 3:52 pm

Loic,
I just downloaded and tried 5.4.1 and it seems to be good so far. I will still send a sample app if you like. It may take me a little while to get it together, but I'll be glad to do it if it will help you!

Heard :)
heard
 
Posts: 78
Joined: Wed Jan 02, 2008 11:55 pm

Re: Autofeed and AutoScan issues

Postby Loïc » Thu May 15, 2008 3:55 pm

Heard,

If you can confirm to me that the last fixed edition is working for you I don't need your app.

Thank you for your dedication Heard.

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4430
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: Autofeed and AutoScan issues

Postby heard » Thu May 15, 2008 4:29 pm

Hi Loic,
I spoke too soon. It is still crashing. I'll get a sample together for you.
Thanks!

Heard
heard
 
Posts: 78
Joined: Wed Jan 02, 2008 11:55 pm

Re: Autofeed and AutoScan issues

Postby justcode » Tue May 03, 2011 6:35 pm

To see if there are more pages to get when autoscan is enabled try this:

Code: Select all
BOOL CScannerSourceTWAIN::IsMorePages()
{
    long lState = m_Image.TwainGetState();

    // see if there are pages ready to transfer
    if( lState >= gd::TWAIN_TRANSFER_READY)
        return TRUE;

    return FALSE;
}


Before you start the scan you can check the feeder like this:

Code: Select all
BOOL CScannerSourceTWAIN::IsPaperLoaded()
{
    // see if there are pages ready to transfer
    if(IsMorePages())
        return TRUE;

    // see if there are any pages in the feeder
    double dValue = 0;
    if(m_Image.TwainGetCapCurrentNumeric(CAP_FEEDERLOADED, &dValue))
        if(dValue != 0)
            return TRUE;

    return FALSE;
}


Hope this helps...
Paul R. Rondeau
Sr. Software Engineer
MultiProcess Computer Corporation
User avatar
justcode
 
Posts: 24
Joined: Wed Jul 15, 2009 9:20 pm


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 3 guests

cron