Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: Version 14.5 Update
Started by amitt at 03-20-2007 8:24. Topic has 8 replies.

Print Search « Previous Thread Next Thread »
  03-20-2007, 8:24
amitt is not online. Last active: 4/30/2007 7:12:47 AM amitt

Not Ranked
Joined on 03-15-2007
Posts 6
Version 14.5 Update
Reply Quote

Hi

I am ussing the LEAd Tools version 14. 5 .I try to change the margin propery Left,Right for the scanning through the follwing example but it did not wok.

Dim twFrm As New twFrame
   Dim CapVal As New LEADRasterVariant

   TwainCap.EnableMethodErrors = False
   TwainCap.CapInfo.Capability = L_TWUN_INCHES
   TwainCap.CapInfo.ConType = L_TWON_ONEVALUE
   TwainCap.CapOneValue.OneValItemType = L_TWTY_UINT16
   CapVal.Type = VALUE_USHORT
   CapVal.LongValue = L_TWUN_INCHES
   TwainCap.CapOneValue.OneValCapValue = CapVal

   twFrm.RightMargin = 0
   twFrm.LeftMargin = 0
   twFrm.BottomMargin = 10
   twFrm.TopMargin = 10

   TwainCap.EnableMethodErrors = False
   TwainCap.CapInfo.Capability = L_ICAP_FRAMES
   TwainCap.CapInfo.ConType = L_TWON_ONEVALUE
   TwainCap.CapOneValue.OneValItemType = L_TWTY_FRAME
   CapVal.Type = VALUE_DISPATCH
   CapVal.DispatchValue = twFrm
   TwainCap.CapOneValue.OneValCapValue = CapVal


  nRet = RasterTwain.SetCapability2(TwainCap, L_LTWAIN_CAPABILITY_SET)
   If nRet = 20084 Then
   Else
   If nRet <> 0 Then
     MsgBox "SetCapablity2 for frame size failed. nRet = " & CStr(nRet), vbOKOnly
   End If
   End If
                        It always return nRet  = 20566

         why it is not supported on 14.5 if no then please provide the code or the changes which I have to made .I have to download any dll.Please prvide the solution as early as possible.

Thanks

Amit

 

 


   Report 
  03-22-2007, 4:09
Maen Hasan is not online. Last active: 12/30/2008 4:32:47 PM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,874
Re: Version 14.5 Update
Reply Quote
Hello,

Error number 20566 means required capability not supported. This is a limitation from the twain driver that you use (the capability that you are trying to set is not supported).

To be sure that the Twain driver doesn't support the capability, you need to test it using the standard Twain test utility from he Twain Working Group. This program is called Twacker and you can get it from here:

http://www.twain.org/devfiles/twack.zip

If you face the same problem using the Twacker, then the problem is related to the scanner itself.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
   Report 
  03-30-2007, 12:05
josh@exscribe.com is not online. Last active: 7/13/2005 5:26:45 PM josh@exscribe.com

Top 150 Posts
Joined on 03-01-2005
Posts 17
Re: Version 14.5 Update
Reply Quote

We also had this problem.

 

After installing 14.5 from cd - everything worked.

After installing 14.5 patch - we had this problem.

Rolled back to cd files - everything worked.

I have sent a support email, but no reply yet.

On our cd we had version 14.5.0.4.  The patch installed 14.5.0.16.

Josh Larkin

Exscribe


   Report 
  04-02-2007, 4:44
amitt is not online. Last active: 4/30/2007 7:12:47 AM amitt

Not Ranked
Joined on 03-15-2007
Posts 6
Re: Version 14.5 Update
Reply Quote

Hi,

   We have check with the default scanner TWAIN_32 SAMPLE SOURCE 1.603(31-32) it shows the required capability supported through http://www.twain.org/devfiles/twack.zip
 but when we run it  from the code it shows error SetCapability2 for frame size failed : 20568.

Is we have to downloads some patches from the leadtools ? We are using trial version 14.5 and for evaluating the functionality we must required the solution for it .So that we can go for registration of leadtools.

Code we are using :-

 twFrm.TopMargin = 0
   twFrm.LeftMargin = 0
   twFrm.RightMargin = gCurDoc.Width
   twFrm.BottomMargin = gCurDoc.Height
   RasterTwain.ImageFrame = twFrm
   RasterTwain.ImageResolution.Unit = L_TWUN_INCHES
   TwainCap.EnableMethodErrors = False
   TwainCap.CapInfo.Capability = L_ICAP_FRAMES
   TwainCap.CapInfo.ConType = L_TWON_ONEVALUE
   TwainCap.CapOneValue.OneValItemType = L_TWTY_FRAME
   CapVal.Type = VALUE_DISPATCH
   CapVal.DispatchValue = twFrm
   TwainCap.CapOneValue.OneValCapValue = CapVal

   nRet = RasterTwain.SetCapability2(TwainCap, L_LTWAIN_CAPABILITY_SET)
   If nRet = 20084 Then
   Else
   If nRet <> 0 Then
     MsgBox "SetCapablity2 for frame size failed. nRet = " & CStr(nRet), vbOKOnly
   End If
   End If

 

 Please provide the path so the we can downloads some patches for the evaluation.

Thanks

Amit

 

 


   Report 
  04-02-2007, 5:22
Maen Hasan is not online. Last active: 12/30/2008 4:32:47 PM Maen Hasan



Top 10 Posts
Joined on 08-05-2004
Posts 1,874
Re: Version 14.5 Update
Reply Quote
Hello,

Error number 20568 means Invalid capability value.
To make sure that you are using correct values, please check the valid values by using the standard twain test utility (Twacker).

About the v14.5 evaluation patches, to get the download instructions to download the latest v14.5 patches, please send email to support@leadtools.com. Don't forget to mention that you are evaluating.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
   Report 
  04-02-2007, 7:02
josh@exscribe.com is not online. Last active: 7/13/2005 5:26:45 PM josh@exscribe.com

Top 150 Posts
Joined on 03-01-2005
Posts 17
Re: Version 14.5 Update
Reply Quote

Hi,

I emailed support on Friday and am waiting to hear back.  I realize it may take up to 2 business days.  We are not evaluating, however, we installed with our 14.5 cd.  It installed version 14.5.0.4.

 

Josh Larkin

Exscribe


   Report 
  04-03-2007, 12:23
josh@exscribe.com is not online. Last active: 7/13/2005 5:26:45 PM josh@exscribe.com

Top 150 Posts
Joined on 03-01-2005
Posts 17
Re: Version 14.5 Update
Reply Quote

wow

So far I'm up to a total of 13 emails back and forth with sales and support and still no download instructions...


   Report 
  04-04-2007, 9:15
Qasem Lubani is not online. Last active: 12/21/2008 9:12:09 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,187
Re: Version 14.5 Update
Reply Quote

Sorry for the inconvenience. I emailed you the needed instructions for the .NET assemblies and other patches. It took longer than usual because we had to clear the issue your account had with our licensing department before we could proceed with support.


Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
  04-04-2007, 9:58
josh@exscribe.com is not online. Last active: 7/13/2005 5:26:45 PM josh@exscribe.com

Top 150 Posts
Joined on 03-01-2005
Posts 17
Re: Version 14.5 Update
Reply Quote

Thank you for the instructions.  We are now up and running on version 14.5.0.44 with no apparent problems.  After testing we will no for sure.

 

Thank you for the support.

 

Josh Larkin

Exscribe


   Report 
Post
LEAD Support Fo... » General » Support Site Su... » Re: Version 14.5 Update

Powered by Community Server, by Telligent Systems