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 : Monday, September 26, 2011 7:46:29 PM(UTC)

tthakur  
tthakur

Groups: Registered
Posts: 9


Hi,

I am using LeadTools Imaging toolkit v17 with VB6.
I need to display all the available Page Sizes (e.g. A3, A4 etc) supported by any perticular Scanner in a combobox.
could you please help me with some example, how can I do that?
As I am new to VB, it would be a great help if I get some code example on this.
Thanks,
Tameshwar Thakur
 

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 : Wednesday, September 28, 2011 6:18:08 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

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

You need to use the ICAP_SUPPORTEDSIZES (L_ICAP_SUPPORTEDSIZES) twain capability with the QueryCapability method (ILEADRasterTwain).

Code is:
+------+
Dim nRet As Integer
Dim TwainCap As New LEADTwainCapability_U

RasterTwain2.EnableMethodErrors = False
RasterTwain2.EnableTwainEvent = True

TwainCap.CapInfo.ConType = L_TWON_ENUMERATION
TwainCap.CapInfo.Capability = L_ICAP_SUPPORTEDSIZES

nRet = RasterTwain2.QueryCapability2(TwainCap)

Dim n As Integer
For n = 0 To TwainCap.CapEnum.EnumNumOfItems - 1
MsgBox "value " & n & " = " & TwainCap.CapEnum.EnumCapValue(n).LongValue
Next

Set TwainCap = Nothing
+------+

Values are documented in the Twain specification document from the Twain Working Group in the section about ICAP_SUPPORTEDSIZES values.

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#3 Posted : Wednesday, September 28, 2011 8:24:12 PM(UTC)

tthakur  
tthakur

Groups: Registered
Posts: 9


Thanks a lot Maen. It really helped.
 
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.063 seconds.