The leading provider of version control solution and TWAIN SDK

Using Dynamic Web TWAIN in Visual Studio

Developing A Web Application
Developing A Desktop Application
Get Samples

If you are developing a web application, please follow the steps below to use Dynamic Web TWAIN:

1. Input Web Server License in Licensing Tool. More info
2. Run Lpk_tool.exe and generate DynamicWebTwain.lpk file. More info
3. Add DynamicWebTwain.lpk to your project.
4. In the HTML page, insert an <object> tag for the License Manager object before any other <object> tags. The License Manager is an ActiveX control that is installed with Internet Explorer. 

<object classid = "clsid:5220cb21-c88d-11cf-b347-00aa00a28331" VIEWASTEXT>
<param name="LPKPath" value="DynamicWebTwain.lpk" />
</object>

Note: This classid, "5220cb21-c88d-11cf-b347-00aa00a28331", is for the License Manager and not for your ActiveX controls. You must use the same classid every time you refer to the LPK file. In addition, you should keep the Name parameter of the tag as "LPKPath", and set the Value parameter for the tag of the License Manager object to the LPK file name and path.

5. Add DynamicWebTWAIN.cab, which can be found in the installation folder of Dynamic Web TWAIN, to your project.

6. Insert a <object> tag for Dynamic Web TWAIN.
For trial version of Dynamic Web TWAIN:

<object classid="clsid:FFC6F181-A5CF-4ec4-A441-093D7134FBF2" id="DynamicWebTwain1" width="143" height="156"
CodeBase = "DynamicWebTWAIN.cab#version=6,1">
<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.1" />
<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>

For full version of Dynamic Web TWAIN:

<object classid="clsid:E7DA7F8D-27AB-4EE9-8FC0-3FEC9ECFE758" id="DynamicWebTwain1" width="143" height="156"
CodeBase = "DynamicWebTWAIN.cab#version=6,1">
<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.1" />
<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>

7. You can now use the methods and properties provided by Dynamic Web TWAIN to develop the application according to your needs. Click here to find all the methods/properties of Dynamic Web TWAIN.

 -----------------------------------------------------
If you are developing a desktop application, please follow the steps below to use Dynamic Web TWAIN:

1. Start Visual Studio.
2. Click Tools->Choose Toolbox Items->COM Components, check DynamicWebTwain Class in the list and click OK.
3. You can now find Dynamic Web TWAIN ActiveX Control in Toolbox and you can use Dynamic Web TWAIN like other controls.

 -----------------------------------------------------
We provide samples for your reference.

You can download the web samples of Dynamic Web TWAIN here:
https://www.dynamsoft.com/Secure/RegisterInfo_sample.aspx

You can find desktop samples in the program group of Dynamic Web TWAIN.
 




Article Details

Last Updated
2nd o September, 2010

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 (0 votes)

No users have voted.

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