test page

If you are new to the toolkit, please first check out
Dynamic Web TWAIN Developer's Guide [PDF]
.

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

  1. Install

    If you haven't downloaded the installer, you can get it here. If you have purchased, you should've received
    the download link for the full installer. If not, please contact
    sales[at]dynamsoft.com
    .

  2. Deploy

    After installation, please feel free to try deploying with one of the samples in
    the installation directory. These samples demonstrate the key features of the SDK
    including scanning, saving, and uploading, etc..

    If you have developed your own scanning module (scanning page) with the latest trial
    version of Dynamic Web TWAIN and are ready to deploy the full purchased version,
    please copy the entire /Resources/ folder to your solution and
    replace the old one. The Resources folder are normally found in

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

  3. Configuration

    Open the license tool (DWTLicensing.exe) in the installation directory:
    C:\Program Files (x86)\Dynamsoft\Dynamic Web TWAIN SDK {Version Number} {Trial}\

    Please delete old or expired licenses, add new license and generate a product key.
    Learn more>>

    Open dynamsoft.webtwain.config.js, and update the basic settings like the
    size, the product key and whether it's trial or full.


    // 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;

Now copy the entire solution to the final destination and you are all set.





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


To upgrade
Dynamic Web TWAIN
from version 10.* to
10.2
, please follow the steps below.

  1. Re-install and use new Resource files

    Firstly, uninstall the old version on your development machine from Start
    menu -> Control Panel -> Uninstall a Program.

    NOTE: For non-IE end user (Chrome & Firefox), please also uninstall the component
    'Dynamic Web TWAIN Plug-in' and 'Dynamic Web TWAIN
    HTML5 Edition
    ' from Control Panel before installing
    the full version.

    Afterwards, install the new version. If you haven't downloaded the installer,
    you can get it here. If you have purchased, you should've received
    the download link for the full installer. If not, please contact
    sales[at]dynamsoft.com
    .

    After the installation, back-up and remove the old /Resources/
    folder from your application and replace it with the new one which is typically
    found in

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

  2. Update the JS files

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

    2. Update the code for initializing Dynamic Web TWAIN

      Make a global search for the funtion Dynamsoft_OnReady() in your project, and update
      it as highlighted below. Make sure you have a <div> in the scanning page with
      ID 'dwtcontrolContainer' which holds the Dynamic Web TWAIN instance.


      Dynamsoft.WebTwainEnv.RegisterEvent('OnWebTwainReady', Dynamsoft_OnReady);
      var DWObject;
      function Dynamsoft_OnReady() {
        DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer');
      ... ...

    3. Licensing and basic configuration

      Open the license tool (DWTLicensing.exe) in the installation directory:
      C:\Program Files (x86)\Dynamsoft\Dynamic Web TWAIN SDK {Version Number} {Trial}\

      Delete old or expired licenses if any, add new licenses and generate a product key.
      Learn more>>

      Open dynamsoft.webtwain.config.js, and update the basic settings like the
      size, the product key and whether it's trial or full.


      // 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;

That's it, you have upgraded 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
from version 9.* to
10.2
, please refer to the steps below.

  1. Re-install and use new Resource files

    Firstly, uninstall the old version on your development machine from Start
    menu -> Control Panel -> Uninstall a Program.

    NOTE: For non-IE end user (Chrome & Firefox), please also uninstall the component
    'Dynamic Web TWAIN Plug-in' from Control Panel
    before installing the full version.

    Afterwards, install the new version. If you haven't downloaded the installer,
    you can get it here. If you have purchased, you should've received
    the download link for the full installer. If not, please contact
    sales[at]dynamsoft.com
    .

    After the installation, back-up and remove the old /Resources/
    folder from your application and replace it with the new one which is typically
    found in

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

  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. Update the code for initializing Dynamic Web TWAIN

      • Find and comment out the following line


        //seed = setInterval(controlDetect, 500);

        ... ...

        DWObject = gWebTwain.getInstance();

      • Change the following function
        function controlDetect() {

        to


        // Add the new funtion and new object
        function Dynamsoft_OnReady()
        {
          DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer');
          ...
        }
    4. Find and replace

      DWObject.attachEvent(...

      with

      DWObject.RegisterEvent(...

    5. If you see any code similar to 'var
      DWObject = gWebTwain.getInstance();'
      , remove it.

  3. Licensing and basic configuration

    Open the license tool (DWTLicensing.exe) in the installation directory:
    C:\Program Files (x86)\Dynamsoft\Dynamic Web TWAIN SDK {Version Number} {Trial}\

    Delete old or expired licenses if any, add new licenses and generate a product key.
    Learn more>>

    Open dynamsoft.webtwain.config.js, and update the basic settings like the
    size, the product key and whether it's trial or full.

    Pay attention to the highlighted code below


    // 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;
    Dynamsoft.WebTwainEnv.RegisterEvent('OnWebTwainReady', Dynamsoft_OnReady);

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.

Afterwards, install the new version. If you haven't downloaded the installer,
you can get it here. If you have purchased, you should've received
the download link for the full installer. If not, please contact
sales[at]dynamsoft.com
.

For more info, please first check out
Dynamic Web TWAIN Developer's Guide [PDF]
.