How to deploy or upgrade to the latest version2

If you are new to the toolkit, please refer to the Dynamic Web TWAIN SDK [HTML] and Dynamic Web TWAIN Developer's Guide [PDF] in the installation directory.

To deploy Dynamic Web TWAIN 10, please refer to the steps below.

  1. Install

    Please download the EXE trial package. If you are using full version, please contact sales[at]dynamsoft.com.

  2. Deploy

    After installation, please feel free to deploy the
    samples in the installation directory. These samples demonstrate some of
    our scanning, saving, and uploading features.

    If you have developed your own scanning module which is powered by the latest version of Dynamic Web TWAIN, please copy the /Resources/ folder to your system. The Resources folder can normally be copied from

    C:\Program Files (x86)\Dynamsoft\Dynamic Web TWAIN SDK {Version Number} {Trial}\

  3. Configuration

    Open the EXE license tool in the installation directory. This tool is typically located at
    -> C:\Program Files (x86)\Dynamsoft\Dynamic Web TWAIN SDK 10.1.1\

    Please delete old expired license keys by Delete button, and add new license keys by Add button.
    Learn more>>

    Open dynamsoft.webtwain.config.js, and update the basic settings.

    // Please change the control's width and height as per your needs.
    Dynamsoft.WebTwainEnv.Containers = [{ContainerId:'dwtcontrolContainer', Width:270, Height:350}];
    // Generate your product key and license the control.

    // Please note that the license key is not the same thing as the Product Key. You need to use your license keys to generate a Product Key.

    // For more info about how to generate a product
    key, please refer to: http://kb.dynamsoft.com/questions/40/


    Dynamsoft.WebTwainEnv.ProductKey = '88FFAA09C42D5DE******',
    // False means Full version, True means Trial.
    Dynamsoft.WebTwainEnv.Trial = false;

Your application should be deployed successfully





If you need any assistance or have any problem, please feel free to contact us.


To upgrade Dynamic Web TWAIN 10.0 to 10.1, please refer to the steps below.

  1. Re-install

    Firstly, please uninstall the old version. Kindly navigate to Start menu -> Control Panel -> Uninstall a Program.

    Afterwards, please install the new version on your Windows machine. Please contact sales[at]dynamsoft.com to get the download link of the full version install package.

    Copy the /Resources/ folder to your application and replace all old trial items. Please don't forget to backup old ones first.

    NOTE: For non-IE end user (Chrome & Firefox), s/he has to uninstall the component from Control Panel before installing the full version.
  2. Update the JS file

    1. In the main scan page, update the JS references as highlighted below.

    2. Update the JS file

      Global search the funtion of Dynamsoft_OnReady() in your project, and update it as highlighted below.

      Dynamsoft.WebTwainEnv.RegisterEvent('OnWebTwainReady', Dynamsoft_OnReady);
      var DWObject;
      function Dynamsoft_OnReady() {
      if (_divDWTSourceContainerID == '')
      return;
      DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer');
      var i, iSourceCount = 0,

      buttonScan = D_get('btnScan'),

      oSourceContainer = D_get(_divDWTSourceContainerID);

      ... ...

      Change all "===" to "==".

      //Change "===" to "=="
      if (iSourceCount == 0) {
      buttonScan.disabled = true;

      ... ...

      //Change "===" to "=="
      if (iSourceCount == 0) {
      showtblLoadImage_onclick();

      ... ...

  3. License DWT on your server machine

    Open the EXE license tool in the installation directory. This tool is typically located at
    -> C:\Program Files (x86)\Dynamsoft\Dynamic Web TWAIN SDK 10.1.1\

    Please delete old expired license keys by Delete button, and add new license keys by Add button.
    Learn more>>

    Find the dynamsoft.webtwain.config.js and apply the basic settings like the following.

    // Please change the control's width and height as per your needs.
    Dynamsoft.WebTwainEnv.Containers = [{ContainerId:'dwtcontrolContainer', Width:270, Height:350}];
    // Generate your product key and license the control.

    // Learn more: http://kb.dynamsoft.com/questions/40/


    Dynamsoft.WebTwainEnv.ProductKey = '88FFAA09C42D5DE******',
    // False means Full version, True means Trial.
    Dynamsoft.WebTwainEnv.Trial = false;

You have successfully upgrade to the latest version of Dynamic Web TWAIN.





If you need any assistance or have any problem, please feel free to contact us.


To upgrade Dynamic Web TWAIN 9.1 or 9.2 to 10.1 version, please refer to the steps below.

  1. Re-install

    Firstly, please uninstall the old version. Kindly navigate to Start menu -> Control Panel -> Uninstall a Program.

    Afterwards, please install the new version on your Windows machine. Please contact sales[at]dynamsoft.com to get the download link of the full version install package.

    Copy the /Resources/ folder to your application and replace all old trial items. Please don't forget to backup old ones first.

    NOTE: For non-IE end user (Chrome & Firefox), s/he has to uninstall the component from Control Panel before installing the full version.
  2. Update the JS file

    1. In the main scan page, update the JS references as highlighted below.

    2. Comment out _dwtParam and gWebTwain like this:

      //var _dwtParam = {
      //    'productKey': '******',
      //     'containerID': 'dwtcontrolContainer',

      //     'width': _iWidth,

      //     'height': _iHeight,

      ... ...

      //     'onPostTransfer':Dynamsoft_OnPostTransfer,

      //};

      //var gWebTwain;
      //(function() {
      //     gWebTwain = new Dynamsoft.WebTwain(_dwtParam);
      //})();
    3. Delete the old object and add the new one

      In this step, you may not find the following code snippets from your scan module. If so, please ignore this step.

      // Delete the old object
      function controlDetect() {
      ... ...

      DWObject = gWebTwain.getInstance();

      ... ...

      // Add the new funtion and new object
      function Dynamsoft_OnReady() {
      DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer');
      // Register events if you have any. Otherwise the events won't work.
      DWObject.RegisterEvent("OnPostTransfer", Dynamsoft_OnPostTransfer);
      DWObject.RegisterEvent("OnImageAreaSelected", Dynamsoft_OnImageAreaSelected);
      }
    4. If you still have any var DWObject = gWebTwain.getInstance(); in your project, please replace them with:

      var DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer');
  3. License DWT on your server machine

    Open the EXE license tool in the installation directory. This tool is typically located at
    -> C:\Program Files (x86)\Dynamsoft\Dynamic Web TWAIN SDK 10.1.1\

    Please delete old expired license keys by Delete button, and add new license keys by Add button.
    Learn more>>

    Find the dynamsoft.webtwain.config.js and apply the basic settings like the following.

    // Please change the control's width and height as per your needs.
    Dynamsoft.WebTwainEnv.Containers = [{ContainerId:'dwtcontrolContainer', Width:270, Height:350}];
    // Generate your product key and license the control.

    // Learn more: http://kb.dynamsoft.com/questions/40/


    Dynamsoft.WebTwainEnv.ProductKey = '88FFAA09C42D5DE******',
    // False means Full version, True means Trial.
    Dynamsoft.WebTwainEnv.Trial = false;

You have successfully upgrade to the latest version of DWT.





If you need any assistance or have any problem, please feel free to contact us.


If you are using Dynamic Web TWAIN 9.0 or older, we suggest to you recreate your scan module using Dynamic Web TWAIN 10.

Please feel free to try out the EXE trial package. If you are using full version, please contact sales[at]dynamsoft.com.

Kindly check out the Dynamic Web TWAIN SDK [HTML] and Dynamic Web TWAIN Developer's Guide [PDF] in the installation directory. You will find how easy it is to use Dynamic Web TWAIN 10.

Is this page helpful?

Leave a Reply

Your email address will not be published.