We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 708dd17 commit e15fbd8Copy full SHA for e15fbd8
info/api/WebTwain_Viewer.md
@@ -62,20 +62,20 @@ bind(element: HTMLDivElement | HTMLElement) : boolean;
62
**Example**
63
64
```javascript
65
-var DWObject, template;
+var DWObject;
66
Dynamsoft.DWT.CreateDWTObjectEx(
67
{
68
- WebTwainId: "a",
+ WebTwainId: "dwtControl"
69
},
70
function (obj) {
71
DWObject = obj;
72
- template = DWObject.Viewer.getElementById("dwtcontrolContainer_temp3");
73
- DWObject.Viewer.width=500;
74
- DWObject.Viewer.height=600;
+ DWObject.Viewer.bind("dwtcontrolContainer");
+ DWObject.Viewer.width=600;
+ DWObject.Viewer.height=800;
75
DWObject.Viewer.show();
76
77
- function (errorCode, errorString) {
78
- console.log(errorString);
+ function (err) {
+ console.log(err);
79
});
80
```
81
0 commit comments