1. What is TWAIN?
TWAIN is a protocol and Application Programming Interface (API) that
standardizes communication between an application and image acquisition devices
such as scanners and digital cameras. This standard allows a developer to make
standard calls to any image acquisition device that supports TWAIN. Thus the
application would not have to be rewritten to support every device. TWAIN has
been in existence since 1992 and is governed by the TWAIN Working Group.
2. What is Dynamic Web TWAIN?
Dynamic Web TWAIN has both ActiveX and Plug-in edition.
Plug-in edition is compatible with Gecko-based browsers, such as Netscape, Firefox, Mozilla..
ActiveX edition is compatible with Microsoft Internet Explorer and all COM-compatible environment, such as MS Office, VB, VC.
Dynamic Web TWAIN enables you to acquire images from any TWAIN compatible devices.
Basically speaking, Dynamic Web TWAIN has all the functionalities that Dynamic
TWAIN has, plus much functionality specifically designed for web environment.
With the carefully designed interface, and the built-in wizard mode, Dynamic Web
TWAIN is very easy to use. You can typically do your TWAIN job in several lines
of code. At the same time, Dynamic Web TWAIN is very powerful. It is compatible
with TWAIN specification V1.9. It has built-in JPEG encoder and decoder. It
supports all three image transfer modes and many other features.
Dynamic Web TWAIN has many features specifically designed for web environment,
such as uploading and downloading images through FTP or HTTP protocol.
3. For which purposes can I use Dynamic Web
TWAIN?
Dynamic Web TWAIN can be used for controlling any work of scanners, digital
cameras and any other devices which support TWAIN standard. Dynamic Web TWAIN can upload and download images through FTP or HTTP
protocol. Proxy is supported.
Also, you can use Dynamic Web TWAIN with any COM-compatible development
tools, such as VB, VC, C#, VB.NET, Delphi.
4. What the main advantage of Dynamic Web
TWAIN when compared with other TWAIN which is also designed for web environment?
The main advantage of Dynamic Web TWAIN is that Dynamic Web TWAIN is a TRUE
web scanning solution.
It is compatible with Internet Explorer, Mozilla, Netscape, Firefox and other browsers.
It is very small. Absolutely no supporting DLL is needed for distribution.
Upload and download image through HTTP and FTP.
Supports TIFF, JPEG and PNG compression.
5. Who do I contact if I need technical
support?
9. What is Live
Help?
DynamSoft is committed to providing the best customer support in the industry.
Our support team is ready to offer high quality, friendly and
responsively technical support for our valued registered users.
10. What are the major differences between the Coding Service and
usual customer support?
1. How do I distribute my application?
Only DynamicWebTwainCtrl.dll and DynamicWebTwain.xpi can be distributable with end user application. All
other files and documentations can NOT be distributed.
YOU MUST NOT DISTRIBUTE ".LIC" FILE OF DYNAMIC WEB TWAIN.
Dynamic Web TWAIN is very easy to distribute. Since Dynamic Web TWAIN is
developed directly with pure Win32 API and assembly language, no additional
supporting DLL or file is needed to distribute Dynamic Web TWAIN.
Please refer to the License Agreement for more info.
2. How many licenses do I need for a
web-based application that runs on one internet server but can be accessed by many
clients?
You need one Internet Server License.
Please refer to the License Agreement for more info.
3. Do I need a Developer License to do the
development if I have Internet Server License or Intranet Server License?
Yes. Developer License is needed for development.
4. What files I need to include in the setup package of my program?
You need DynamicWebTwainCtrl.dll in the setup package only.
Yes. Dynamic Web Edition Plug-in Edition is compatible with Netscape, Mozilla, Firefox and other Gecko-based browsers
1. How can I acquire black-white images?
Twain1.OpenSource
Twain1.IfShowUI = False
Twain1.IfDisableSourceAfterAcquire = True
Twain1.PixelType = 0 'Black - White image : 0, GRAY image:
1, RGB image: 2
Twain1.AcquireImage
2. How can I work without User Interface?
Private Sub BeginScan()
Twain1.OpenSource
Twain1.IfShowUI = False 'set without user interface
Twain1.IfDisableSourceAfterAcquire = True
Twain1.AcquireImage
End Sub
Private Sub Twain1_OnPostTransfer()
Twain1.SaveAsBMP ("c:\temp.bmp", 0)
End Sub
3. How can I scan only a part of a picture?
Twain1.SelectSource
Twain1.OpenSource
Twain1.IfShowUI = False
'Set Image Layout
Twain1.Unit = 0 'INCHES
Twain1.SetImageLayout 0, 0, 5, 5
Twain1.AcquireImage
4. How can I select necessary device without device selection
dialog?
Dim lngNum As Long 'For loop.
Twain1.OpenSourceManager
For lngNum = 0 To Twain1.SourceCount - 1
If (Twain1.SourceNameItems(lngNum) = "Specified device name" Then
Twain1.SelectSourceByIndex (lngNum)
End If
Next
'if can't find the specified source, it'll select default source
Twain1.AcquireImage
5. How can I disable progress indicator dialog when I acquire
images without UI?
Twain1.IfShowUI = False
Twain1.IfDisableSourceAfterAcquire = True
Twain1.OpenSource
Twain1.IfShowIndicator = False
Twain1.AcquireImage
6. How can I set resolution in the X and Y direction
separately?
Twain1.SelectSource
Twain1.OpenSource
'Set XRESOLUTION current value.
Twain1.Capability = ICAP_XRESOLUTION
Twain1.CapType = TWON_ONEVALUE
Twain1.CapValue = 300
If (Twain1.CapSet = False) Then
MsgBox "Failed to set the x-resolution." + vbCrLf + Twain1.ErrorString,
vbCritical
End If
'Set YRESOLUTION current value.
Twain1.Capability = ICAP_YRESOLUTION
Twain1.CapType = TWON_ONEVALUE
Twain1.CapValue = 200
If (Twain1.CapSet = False) Then
MsgBox "Failed to set the y-resolution." + vbCrLf + Twain1.ErrorString,
vbCritical
End If
Twain1.AcquireImage
7. How can I upload acquired image to the Web server?
Dynamic Web TWAIN supports FTP, HTTP Put and HTTP Post upload method.
The following is a http put method sample:.
Private Sub BeginScan()
WebTwain1.AcquireImage
End Sub
Private Sub WebTwain1_OnPostTransfer()
If (WebTwain1.HTTPUploadThroughPut("127.0.0.1", 0, "httpUploadFileTemp.bmp") =
False) Then
MsgBox WebTwain1.ErrorString
End If
End Sub
8. How to use ADF? We want to save each document in a separate
file.
Dim iDocumentCounter As Integer
iDocumentCounter = 0 'set initialize value
Private Sub BeginScan()
Twain1.OpenSource
Twain1.IfShowUI = False
Twain1.IfDisableSourceAfterAcquire = True
If Twain1.Duplex <> 0 Then
Twain1.IfDuplexEnabled = True 'enable duplex
End If
If Twain1.IfFeederEnabled = True Then
Twain1.XferCount = -1
Twain1.IfAutoFeed = True 'auto feed
If Twain1.IfFeederLoaded = True Then
Twain1.AcquireImage
End If
End If
End Sub
Private Sub Twain1_OnPosttransfer()
iDocumentCounter = iDocumentCounter + 1
If Twain1.SaveAsBMP("c:\Image\" + Str(iDocumentCounter) + ".bmp",
0) = False Then
MsgBox Twain1.ErrorString
End If
End Sub