The leading provider of version control solution and TWAIN SDK

Step by Step Setup Guide for Dynamic Web TWAIN ActiveX in Visual Studio

Below is a simple step by step guide on how to use Dynamic Web TWAIN ActiveX:
 
1. Install Dynamic Web TWAIN 6.3.1 TRIAL.exe. You can download it here.

2. Generate a LPK file and name it "DynamicWebTwain.lpk". For more info, please click here.

3. Create a Web Application in Visual Studio.

4. Go to the installation folder of Dynamic Web TWAIN, copy the file called "DynamicWebTWAIN.cab" and the newly created LPK file "DynamicWebTwain.lpk" to the directory of your web application.

5. Add the object tag for LPK file in the "Default.aspx":
<object classid = "clsid:5220cb21-c88d-11cf-b347-00aa00a28331" VIEWASTEXT>
<param name="LPKPath" value="DynamicWebTwain.lpk" />
</object>

6. Add the object tag for Dynamic Web TWAIN in the "Default.aspx":
<object classid="clsid:FFC6F181-A5CF-4ec4-A441-093D7134FBF2" id="DynamicWebTwain1" width="500" height="500"
CodeBase = "DynamicWebTWAIN.cab#version=6,2">
<param name="_cx" value="847" />
<param name="_cy" value="847" />
<param name="JpgQuality" value="80" />
<param name="Manufacturer" value="Dynamsoft Corporation" />
<param name="ProductFamily" value="Dynamic Web TWAIN" />
<param name="ProductName" value="Dynamic Web TWAIN" />
<param name="VersionInfo" value="Dynamic Web TWAIN 6.3" />
<param name="TransferMode" value="0" />
<param name="BorderStyle" value="0" />
<param name="FTPUserName" value="" />
<param name="FTPPassword" value="" />
<param name="FTPPort" value="21" />
<param name="HTTPUserName" value="" />
<param name="HTTPPassword" value="" />
<param name="HTTPPort" value="80" />
<param name="ProxyServer" value="" />
<param name="IfDisableSourceAfterAcquire" value="0" />
<param name="IfShowUI" value="1" />
<param name="IfModalUI" value="1" />
<param name="IfTiffMultiPage" value="0" />
<param name="IfThrowException" value="0" />
<param name="MaxImagesInBuffer" value="1" />
<param name="TIFFCompressionType" value="0" />
</object>
Note: Change the classid to "E7DA7F8D-27AB-4EE9-8FC0-3FEC9ECFE758" if you are using the full version of Dynamic Web TWAIN ActiveX.

7. Add a button to use Dynamic Web TWAIN to scan:

<input id="btnScan" style="width: 100px; height: 30px" onclick="return btnScan_onclick()" type="button" value="Scan" />

and the related JavaScript Code:

function btnScan_onclick() {
WebTWAIN = document.getElementById(
"DynamicWebTwain1");
WebTWAIN.SelectSource();
WebTWAIN.OpenSource();
WebTWAIN.IfShowUI =
false;
WebTWAIN.MaxImagesInBuffer = 100;
WebTWAIN.AcquireImage();
}

8. Run the application.

9. Add the properties/methods that you need to the application. You can check out our online help document and online demo.

For technical support, you can contact us at twainsupport[at]dynamsoft.com or LiveChat:
www.dynamsoft.com/support/livehelp.aspx




Article Details

Last Updated
28th o February, 2012

Would you like to...

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favorites Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF

User Opinions (1 vote)

100% thumbs up 0% thumbs down

How would you rate this answer?



Thank you for rating this answer.

Related Articles

No related articles were found.

Attachments

No attachments were found.

Visitor Comments

No visitor comments posted. Post a comment

Post a comment

To post a comment for this article, simply complete the form below. Fields marked with an asterisk are required.
   Name:
   Email:
* Comment:
* Enter the code below:
 

Continue