Dynamic .NET TWAIN 4.3 Released!

Dynamic .NET TWAIN is a .NET component which enables image acquisition, editing and uploading for desktop application. I am very pleased to announce that version 4.3 is now available!

5 months ago, we released v4.2 and most of our customers just loved it. We have a bunch of customers who want to make Dynamic .NET TWAIN a perfect product, so they always love to share their suggestions and comments about the product. Thanks to their great inputs, some exciting features are now added to version 4.3:

  • Greatly improved speed and robustness of the barcode recognition.
  • Enabled OCR on a certain area of the image.
  • Added property LicenseKeys for flexible licensing.
  • Added property SelectionRectAspectRatio to fix aspect ratio for selection rectangle.
  • Added methods to manage images by GUID.
  • And many more.

Please give this new version a try and feel free to share your opinions. A 30-day trial version is available for your testing.

If you are ready to order a license of Dynamic .NET TWAIN, please go to our online purchase page or send your Purchase Order to sales@dynamsoft.com.


New Article on CodeProject: Develop a Cross-Platform Document Imaging Web App

Document management is a big challenge nowadays, especially for paper-heavy industries like healthcare, financial, government etc. You may want to develop a document imaging application which allows users, either using Windows or Mac OS, to easily scan documents or capture images via browsers, so that you can manage the documents/records more efficiently.

Dynamsoft’s ImageCapture Suite is a browser-based document imaging library. It allows you to capture images from scanners, webcams and other TWAIN/UVC/WIA compatible devices on Windows or Mac. If you are interested in the SDK, the 30-day Free Trial can be downloaded from Dynamsoft website.

Key Features

  • Capture images/documents from scanners, webcams and other TWAIN/WIA/UVC compatible imaging devices.
  • Compatible with the mainstream browsers including IE (both 32-bit & 64-bit), Firefox, Chrome, Safari and Opera on Windows and Mac.
  • Edit images: Crop, Change Image Size, Rotate, Zoom, Erase and more.
  • Upload images to various locations – local folder, FTP site, web server, database, SharePoint library and more.
  • Enhanced security: supports SSL and Windows/Forms/Basic Authentication.
  • Supported image formats include BMP, JPEG, PNG, TIFF (both single and multi-page) and PDF (both single and multi-page).


Read more: Develop a Cross-Platform Document Imaging Web App

ImageCapture Suite Online Demo

How to access Team Foundation Server Source Control from Windows Explorer?

Most of the time I use TFS source control within Visual Studio. However, sometimes I just want to add or edit some files from within Windows Explorer without bothering to launch Visual Studio. If you have such needs as well, you can follow the steps below to achieve it.

Firstly, download and install Team Foundation Server Power Tools, which includes Windows Shell Extensions. It provides integration with Windows Explorer which enables you to perform most operations with TFS via Windows Explorer.

After the installation, if you right-click an item in a TFS workspace, you will see the Team Foundation Server context menu.

TFS Context Menu in Windows Explorer

When you click a source control command, you will get the prompt to log into TFS Server. I am using Dynamsoft TFS Hosting service.

Log into TFS Server

Here I add a new htm file and check in the change to TFS from Windows Explorer.

TFS Check In

Then if we go to Source Control Explorer in Visual Studio and check the history of the project , we can see the changeset I submitted from Windows Explorer.

View history of the project

How do I test a TWAIN device?

You may get problems when using your application with some scanners and wonder whether it is the issue with your application or it is the device issue.

If you are using a TWAIN library and your application is supposed to work with all TWAIN compatible devices, you can use Twacker, which is a TWAIN application developed by The TWAIN Working Group. It allows you to exercise features of a TWAIN driver and to see whether the driver of your device is working fine or not.

Install Twacker

You can download Twacker installers here:

32-bit Twacker works with 32-bit TWAIN drivers, while 64-bit Twacker works with 64-bit TWAIN drivers.

How to use Twacker?

After the installation, you can follow the steps below to test your scanners.

  1. Launch Twack. Go to Windows Start  menu and type Twack.
    Launch Twacker
    Launch Twacker


  2. Connect to your scanner. Click menu File-> Select Source  and you will see all the available sources available on your machine.
    Twacker - select source
    Twacker – select source


    Twacker - choose device
    Twacker – choose device


  3. Test your scanner.Under File menu, check ShowUI to show the user interface of the device.

    With UI hidden, you can use the Automatic Feeding setting to test ADF scanning.

    Click Acquire to initiate scanning and see how your device works.

  4. TroubleshootIf you fail to acquire images from your scanner using Twacker, you can adjust the Message Level to see if you can get more information to pinpoint the cause of the issue.

    Under Special menu, you can also check the TWAIN State transition info.

Another easy way to test your TWAIN device online

You can also test your scanner using the online demo of Dynamic Web TWAIN, which is a browser-based TWAIN SDK. You only need to install an ActiveX/Plug-in for your browser (Internet Explorer/Chrome/Firefox, Safari) and have a quick check for your scanner online.

How to Source Control SQL Server Stored Procedure using TFS in VS 2012?

In this article, I will share with you on how to version control your SQL Server Stored Procedure using TFS in Visual Studio 2012.

Dynamsoft Barcode Reader SDK
Ads Powered by Dynamsoft

Here I am using Dynamsoft TFS Hosting service. If you don’t have a TFS account yet, you can sign up online here with free trial.

Now we can follow the steps below to add Stored Procedures to TFS for version control.

  1. Launch VS 2012. Open an existing SQL Server Database Project or create a new one.New sql database project
  2. Then we can import your database in Solution Explorer.  Right-click on the project, and click Import -> Database…Import the database to the project
  3. We will be prompted with Import Database dialog below.Import Database dialog
  4. Click New Connection… and specify the Server and database name in Connection Properties window. And click OKConnection Properties
  5. After finishing importing the database objects to the VS project, we can now add it to TFS for source control.
    First, make sure Visual Studio Team Foundation Server is the current source control provider at menu Tools->Options->Source Control.Right-click the solution file in Solution Explorer and click Add Solution to Source Control…Select  the Team Foundation Server and Team Project to put your database project.

    Connect to Dynamsoft TFS 

  6. Specify the location to store the project.Add to TFS
  7. Now you can manage the versions of the stored procedures in TFS.TFS Source Control Commands



New Article on CodeProject: How to make ActiveX work with IE Protected Mode?

Since Internet Explorer 7 on Windows Vista was released, Protected Mode has been introduced as a new security feature. When running in Protected Mode, Internet Explorer is a low integrity process and has limited permissions to access the user system.

When running Dynamic Web TWAIN, the scanner browser plugin for web application,  on Windows Vista and above, IE Protected Mode is on by default so users consistently get issues like the following:

  • ActiveX failed to access the scanners connected to the user machine
  • IE crashed when ActiveX tries to acquire images from scanner due to insufficient permission


With Dynamic Web TWAIN v9.0, you can now use an independent broker process to communicate with the scanners for better compatibility and robustness.

  • Avoid browser crashes caused by scanner driver problems, thus improving the robustness of the web application. The independent process will not affect the browser process.
  • The independent process used for scanning has a higher permission level than the browser process. This can solve the scanning issues, such as browsers not accessing the scanner source successfully, caused by the increased security features of Windows/IE.


Read more: How to work with IE Protected Mode?

Try out Online Demo of Dynamic Web TWAIN

Download 30-day free trial of Dynamic Web TWAIN 9.0

Dynamsoft’s New Image Capture SDK Adds Mac Support and Sandbox

ImageCapture Suite 9.0 Adds Mac Capabilities to Ensure Cross-Platform Support and Sandbox for Improved Performance and Security

VANCOUVER, BC–(Marketwired – Apr 15, 2013) – Dynamsoft has made available a new software development kit (SDK) that adds to its existing Macintosh® (Mac) features for true cross-platform support and also adds Sandbox for increased robustness and security. The SDK, ImageCapture Suite 9.0, enables easy development of web applications for image acquisition, processing and management. It’s ideal for programmers, R&D managers and CIOs in industries requiring heavy scanning for digital document management. Such industries include healthcare, finance, government and others that require processing paper documents to digital formats. Dynamsoft is a developer of scanner programming libraries andImage Capture SDKs.

ImageCapture Suite 9.0 boasts compatibility with all mainstream browsers for use on Windows® or Macintosh® (Mac). This provides added flexibility to meet all image acquisition needs. Browsers supported include 32-bit and 64-bit Internet Explorer® (IE); Firefox®; Chrome™; Safari®; and Opera®. Devices supported include TWAIN-compatible scanners and UVC-compatible webcams. For webcams, it supports snapshot grabs from live video streams. The SDK enables developers to create image acquisition apps using just a few lines of code. This is instead of needing to code hundreds of lines from scratch and also spending months learning the TWAIN and other standards.

Compatibility has been improved with the addition of supporting a Mac client. Application robustness and security has also been improved with Sandbox. Sandbox enables using an independent process to communicate with imaging devices. With this separation of the scanning process from the browser process, security is enhanced.

“We’ve been developing simple and powerful image capture SDKs now for years,” said Amy Gu, Vice President of Dynamsoft. “ImageCapture Suite 9.0 continues our efforts to make things even easier and more powerful and secure for developers to deploy image capture applications. We also provide all our customers with award-winning technical support that includes everything from knowledge bases and forums to email, chat and phone support.”

The SDK has built-in support for image clean-up, crop, zoom-in/out, and more. In addition, it features multi-threaded and secure image uploading and downloading to/from a database or file system. It also has built-in JPEG, PNG, PDF and TIFF encoders for users to compress acquired images regardless of if the TWAIN source has the capability or not. ImageCapture Suite 9.0 works with ASP.NET; PHP; JSP; ASP; VB.NET; and others.

Pricing and Availability
ImageCapture Suite 9.0 is available starting April 16, 2013 and is licensed per web server. A royalty-free option is also available. There are three general versions. The Plugin Edition starts at $1,199. The ActiveX Edition also starts at $1,199 while the ActiveX + Plugin Edition starts at $1,999. Add-ons are also offered. A 1-D barcode reader starts at $599, a 2-D barcode reader starts at $799 and an OCR SDK starts at $1,599. Full pricing details, purchasing and downloading are available online.

About Dynamsoft Corp.
Founded in 2003, Dynamsoft Corp. provides enterprise-class source control / version control software. Its SourceAnywhere™ software enables efficient file management of source code versions. This ensures greater collaboration and integrity of source code. It is ideal for web, software and application development throughout the lifecycle of development and support. Dynamsoft also provides TWAIN™ software development kits (SDK) and other image capture SDKs. Dynamsoft is an associate member of the TWAIN Working Group that develops TWAIN standards. Thousands of customers use Dynamsoft’s source control and TWAIN SDK solutions. Customers include: 3M®; Apple®; EMC®; Fujitsu®; GE®; H&R Block®; HP®; IBM®, Intel®; InfoSys®; Lockheed Martin®; Olympus®; Philips®; PricewaterhouseCoopers®; Samsung®; Siemens®; Symantec®; Unisys®; Verizon®; and more. More information is available at http://www.dynamsoft.com.

Note: Whether noted or not, references to certain words may be trademarks or registered trademarks of their respective owners.

Dynamic Web TWAIN 9.0 Released!

I am pleased to announce that version 9.0 is now available!

Three dramatic improvements are included in this new version:

  • Do document scanning in an independent process, which greatly improves the robustness of the application.
  • New license verification process. In v9.0, license key can be encrypted in licensing tool and directly embedded in scan page. So the installation & deployment process will be much easier for developers and end users.
  • Support multi-thread HTTP Upload/Download, which dramatically improves upload/download performance and user experience.

For full release notes, please refer to here.

Other resources:

If you are ready to purchase a license, please visit our online store or send your order tosales@dynamsoft.com.

I’d love to hear any comments or suggestions about this new version. Please don’t hesitate to contact me.

Using Barcode as Batch Separator in Web Application

For document management, it is a common requirement that a user puts a stack of documents for automatic document feeder (ADF) scanning. The documents may be for different purposes and he wants to save them into different files automatically after the scanning finishes. This way, it will greatly save the time.

So how can we achieve that? How to enable users to do that on your website or with your web application?

Read more

Take a Photo from a Desktop Webcam and Upload in a Web Browser

Control web cameras or the built-in laptop webcams inside IE, Firefox and Chrome with JavaScript

In some scenarios, such as Visitor Monitoring module for a government department or Patient Tracking module for a hospital, we may need to take a snap of human faces, patient charts, user IDs and so on and then upload them to a central server. How do we implement this for a web application?

How to interact with webcams connected to a computer in browsers?

It’s not possible to access a webcam using JavaScript only. However, it’s possible through the following options:

  • Flash – The web application requests permission to use the camera and the user will be presented with a dialog indicating the site wishes to use the camera. After the user accepts, the application will be able to grab images from the camera.
    First, you’ll need to initialize and attach the camera
  • HTML5 – The biggest hurdle is only a few browser versions support HTML 5. Details >>
  • 3-rd party browser plugin – Internet Explorer can interact with an imaging peripheral through an ActiveX control. Firefox and Chrome can do the same through a plugin of Netscape Plugin Application Programming Interface (NPAPI).

In this article, we are going to take a look at the 3rd option – Dynamic Webcam SDK. Unlike in the first 2 options where a developer needs to deal with camera initialization, an image capturing, editing encoding and uploading separately, everything is encapsulated in Dynamic Webcam SDK.

Introduction to the Webcam API

Dynamic Webcam SDK is a browser plugin which enables users to acquire images from a webcam, edit and then upload/save them to a database, web server or local disk. Also, it can capture a live video stream into a container and grab a snapshot to be exported to a file/binary. The plugin works with all webcams that are compatible with Windows Image Acquisition (WIA) and USB video device class (UVC).

Two editions are provided for different browsers: ActiveX Edition for IE and Plugin Edition for other browsers on Windows OS.

Client Side Server Side
JavaScript, VBScript, HTML ASP.NET, PHP, JSP, ASP, VB.NET, etc.
ActiveX Edition – x86 x64
Plugin Edition – on Windows
IIS, Tomcat, Apache and more 


Here you can see a working application:

Key Features >>

Sample Code

Client-side JavaScript

1. Initialize Dynamic Webcam SDK

ActiveX Edition

Firstly, copy DynamicWebcam.cab to the web server. There are 32-bit and 64-bit CAB files. Choose the proper one according to the needs. The trial and full versions of Dynamic Webcam use different class-ids.

DynamicWebcam.cab can be found in the installation folder of Dynamic Webcam SDK.

For the TRIAL version of Dynamic Webcam, insert the following code in your JS code:

<object classid="clsid:A65BC1E1-B2CE-4251-A0CB-721AC7E02B52" id="DynamicWebcam1" width="143" height="156"
CodeBase = "DynamicWebcam.cab#version=8,0">

Plug-in Edition

Plug-in edition can be used in Gecko-based browsers including Firefox, Chrome, Safari & Opera on PC. Please copy DynamicWebcam.msi to the web server.

Read more