CreateDWTObject

Description

Creates a new instance of Dynamic Web TWAIN in the DIV specified by id.

Syntax

Dynamsoft.WebTwainEnv.CreateDWTObject(id, function(dwtObject){}, function(errorString){});

Parameters

<string> id: specifies the ID of the object to create.

Example

Dynamsoft.WebTwainEnv.CreateDWTObject("dwtcontrolContainer-new",
  function(dwtObject){
    DWObject_new = dwtObject;
  },
  function(errorString){
    console.log(errorString);
  });