LEADTOOLS Support
Imaging
Imaging SDK Questions
need help to display all the available Page Sizes for a scanner in VB6
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, September 26, 2011 7:46:29 PM(UTC)
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
#2
Posted
:
Wednesday, September 28, 2011 6:18:08 AM(UTC)
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)
Groups: Registered
Posts: 9
Thanks a lot Maen. It really helped.
LEADTOOLS Support
Imaging
Imaging SDK Questions
need help to display all the available Page Sizes for a scanner in VB6
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.