How to support multi browsers in one scan page?
Dynamic Web TWAIN works with all mainstream browsers: ActiveX Edition for Internet Explorer (32-bit & 64-bit) on Windows; Plug-in Edition for Firefox, Chrome, Safari and Opera on Windows; Mac Edition for Safari, Chrome, Firefox and Opera on Mac OS X.Haven't downloaded Dynamic Web TWAIN? Please ...
How to make the scan page support both 32-bit and 64-bit IE?
To support both x86/x64 IE, you can detect the IE type and direct it to the according Dynamic Web TWAIN ActiveX edition (the right cab file). Below is the sample code for your reference: //======================= function ExplorerType() { var ua = (navigator.userAgent.toLowerCase()); ...
How to use Dynamic Web TWAIN Plug-in and ActiveX on the same page?
If you want your web application to be able to run in both IE and Firefox, you need to implement both Plug-in and ActiveX editions of Dynamic Web TWAIN on the same page. To achieve this, you can follow the steps below: 1. Add both controls in the page: The Plug-in control: <div style = "borde ...
How to get barcode information with Dynamic Web TWAIN
Since Dynamic Web TWAIN 6.0, we have added the following methods and property for barcode acquisition: GetBarcodeInfo, GetBarcodeText, BarcodeCount Please NOTE that the above methods and property are driver-dependent. They only retrieve the barcode information from the driver of the devic ...
How to set whether the source displays the User Interface?
You can use the IfShowUI property to set whether the Source displays the User Interface. Code: function btnScan_onclick() { frmScan.DynamicWebTwain1.SelectSource(); frmScan.DynamicWebTwain1.OpenSource(); frmScan.DynamicWebTwain1.IfShowUI = false; //don't display ...
Why I only get a part of the image scanned?
Symptom: When you acquire images, you may have only a part of the image been scanned. Cause: 1. The default page size that the source acquires is smaller than the actual page size of the image. 2. You may use the SetImageLayout method to set which part of the image you are going to scan. Resolu ...
Does Dynamic Web TWAIN have any versions developed in other languages?
Currently, Dynamic Web TWAIN (DWT) does not have versions developed in languages other than English. But you can translate DWT into your own language by translating the error strings defined in DWT. Click here for the error list of DWT.
How to detect and discard blank pages automatically?
You can use the methods below to discard blank pages. Before using these methods, please make sure that the driver of your device supports discarding blank pages. Method 1: Use ICAP_AUTODISCARDBLANKPAGES to discard blank page automatically. For more information about this capability, please clic ...
Where and what format are the images in buffer stored?
Dynamic Web TWAIN holds the images in buffer in memory as Bitmap format.
How can I scan only a part of a picture?
You can use the SetImageLayout method to decide which part of the image you are going to scan. Code (VB): Twain1.SelectSource Twain1.OpenSource Twain1.IfShowUI = False 'Set Image Layout Twain1.Unit = 0 'INCHES Twain1.SetImageLayout 0, 0, 5, 5 Twain1.AcquireImage References: For more informati ...
How can I acquire black-white images?
You can set the value of PixelType to 0 (Black&White). Code (VB): Twain1.OpenSource Twain1.IfShowUI = False Twain1.IfDisableSourceAfterAcquire = True Twain1.PixelType = 0 'Black - White image : 0, GRAY image: 1, RGB image: 2 Twain1.AcquireImage References: For more information about the ...
How can I set resolution in the X and Y direction separately?
You can use ICAP_XRESOLUTION and ICAP_YRESOLUTION to set resolution in the X and Y direction separately. Code (VB): Twain1.SelectSource Twain1.OpenSource 'Set XRESOLUTION current value. Twain1.Capability = ICAP_XRESOLUTION Twain1.CapType = TWON_ONEVALUE Twain1.CapValue = 300 If (Twain1.CapSet = ...
How can I scan an inverted image?
You can use the PixelFlavor property to set the pixel flavor for acquired images. Code: 'VB Private Sub Scan_Click() DynamicWebTwain1.OpenSource DynamicWebTwain1.PixelFlavor = 0 'Value = 0 Chocolate. Zero pixel represents darkest shade. 'Value = 1 Vanilla. Zero pixel represents ligh ...
How can I get binary data from a scanned image?
You can use the hDIB property to get binary data from a scanned image. Click here to get more information about this. Also, you can download and test the attached hDIB sample if you want to know more about how to use this property.
How can I disable the progress indicator dialog?
You can use the IfShowIndicator property to disable the progress indicator dialog during the acquisition and transfer, regardless of whether the Source's user interface is active. Code: 'VB Twain1.IfShowUI = False Twain1.IfDisableSourceAfterAcquire = True Twain1.OpenSource Twain1.IfShowIndicato ...