Welcome to LEAD Support Forum Login | Register | Faq  

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

How to Find Out Whether Your Scanner Supports Certain Capabilities Using Twacker
Started by Gabe-Forum@LEADTOOLS.com at 01-05-2006 11:42. Topic has 0 replies.

Print Search « Previous Thread Next Thread »
  01-05-2006, 11:42
Gabe-Forum@LEADTOOLS.com is not online. Last active: 10/1/2008 4:19:50 PM Gabe-Forum@LEADTOOLS.com



Top 25 Posts
Joined on 04-27-2005
Posts 236
How to Find Out Whether Your Scanner Supports Certain Capabilities Using Twacker

Attachment: Twain_topics.zip
Reply Quote

How to Find Out Whether Your Scanner Supports Certain Capabilities

 

LEADTOOLS supports TWAIN 1.9, LEADTOOLS TWAIN provides functionality to negotiate capabilities and acquire data from TWAIN drivers.

 

To get list of supported capabilities for specific driver, you can use LEADTOOLS TWAIN functions or use Twacker utility (download twacker utility from http://www.twain.org/devfiles/twainkit.exe).

 

To use LEADTOOLS TWAIN functions, you need to call GetCapability for specific capability and see if it is supported or not.

 

Or use Twacker utility to get the supported capabilities, do the following steps:

  1. Install Twacker utility, and run “Twack_32.exe”
  2. Select “File” menu and then select “Select Source” menu item. Here a dialog box will appear, and select your scanner.
  3. Select “Special” menu and then select “1 Load/Open SM” menu item
  4. Select “Special” menu and then select “2 Open Source” menu item
  5. Select “Special” menu and then select “3 Send…” menu item, here a dialog box will appear.
  6. In the dialog that shows up, select “MSG_GET” in the MSG field.
  7. Select “CAP_SUPPORTEDCAPS” in the Capability field.
  8. Select “TWON_ARRAY” in the Container field.
  9. Press “Send” button.
  10. Here, a list of supported capabilities will appear in the “Structure:” box.
  11. The following image is what you will get:

Now, search for the capability you need, if the capability is not available in this list, then this capability is not supported. But if the capability is listed, you need to do the checked if required capability is implemented for your driver or not.

 

For example: you need to search for ICAP_COMPRESSION, do the following steps:

  1. Run “Twack_32.exe”.
  2. Select “File” menu and then select “Select Source” menu item. Here a dialog box will appear, and select your scanner.
  3. Select “Special” menu and then select “1 Load/Open SM” menu item
  4. Select “Special” menu and then select “2 Open Source” menu item
  5. Select “Special” menu and then select “3 Send…” menu item, here a dialog box will appear.
  6. In the dialog that shows up, select “MSG_GET” in the MSG field.
  7. Select “ICAP_COMPRESSION” in the Capability field.
  8. Select “TWON_ENUMERATION” in the Container field.
  9. Press “Send” button.
  10. Here, a list of values will appear in the “Structure:” box, notice the following:
    1. If the list of values contains only one item and the item is “NONE”, then there is no hardware compression for selected driver.
    2. If a message box appears, please read the message carefully, the message will return the Return Code, notice the return code is TWRC_FAILURE, and in this case the selected driver does not support the capability.

   Report 
Post
LEAD Support Fo... » Developer » Scanning/Captur... » How to Find Out Whether Your Scanner Supports Certain Capabilities Using Twacker

Powered by Community Server, by Telligent Systems