Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Saturday, January 26, 2013 12:31:15 AM(UTC)
hariannadka

Groups: Registered
Posts: 13


Thank you for your inputs.

We tried to identify if paper is vailable in the document feeder with the help of "CAP_FEEDERLOADED" .We found that though the feeder is empty, the value returned is TRUE .
Please let us know if there are any prerequisites to get this capability value.
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Saturday, January 26, 2013 12:38:57 AM(UTC)
hariannadka

Groups: Registered
Posts: 13


Please find the below code
TW_CAPABILITY twCap;
L_BOOL bEnable;
L_TwainStartCapsNeg(m_hSession);
L_INT nRet;

twCap.Cap = CAP_FEEDERLOADED;
twCap.ConType = TWON_ONEVALUE;
twCap.hContainer = GlobalAlloc(GHND, sizeof(TW_ONEVALUE));

pTW_ONEVALUE pOneValue = (pTW_ONEVALUE)GlobalLock(twCap.hContainer);


pOneValue->ItemType = TWTY_BOOL;
pOneValue->Item = (TW_UINT32)bEnable;

GlobalUnlock(twCap.hContainer);

nRet = L_TwainGetCapability(m_hSession, &twCap, LTWAIN_CAPABILITY_GETVALUES);
if (nRet == TWAIN_SUCCESS)
{
// check if the selected driver supports duplex capability
pOneValue = (pTW_ONEVALUE)GlobalLock(twCap.hContainer);
bEnable = pOneValue->Item;
if(FALSE == bEnable)
{
::MessageBox(NULL,"Before CAP_FEEDERLOADED FALSE", "aUTO", MB_OK);
}
else
{
::MessageBox(NULL,"Before CAP_FEEDERLOADED TRUE", "aUTO", MB_OK);
}
}

L_TwainFreeContainer(&twCap);

L_TwainEndCapsNeg(m_hSession);
 
#3 Posted : Sunday, January 27, 2013 5:49:44 AM(UTC)

Ibrahim  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

Our moderator split your post from the thread it was in, because this question is not directly related to the original one.

From the above code that you included in the question, I noticed that there are steps you miss to include. We have tutorial named "Set up a TWAIN Feeder Scan" in our TWAIN C DLL help file that shows how to create and run a program that implements LEADTOOLS TWAIN Feeder features. Please check it out and see if the problems are solved.

If not, use the Twacker utility to see if the problem is triggered or not. The Twacker utility is the standard test tool from the Twain working group, so if a driver does not work with it, the problem is most likely not related to our toolkit. If you don't have Twacker, you can obtain it by using the following link:
http://twain.org/images/docs/Twack_32.msi
 
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.053 seconds.