Skip to content

Commit f6f3866

Browse files
Update to public Key
1 parent e54a5d3 commit f6f3866

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@angular/platform-browser": "~16.0.0",
2020
"@angular/platform-browser-dynamic": "~16.0.0",
2121
"@angular/router": "~16.0.0",
22-
"dwt": "18.4.1",
22+
"dwt": "18.4.2",
2323
"rxjs": "~7.8.1",
2424
"tslib": "^2.5.2",
2525
"zone.js": "~0.13.0"

src/app/dwt/dwt.component.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,18 @@ export class DwtComponent implements OnInit {
1414
deviceList=[];
1515
constructor() { }
1616
ngOnInit(): void {
17+
Dynamsoft.OnLicenseError = function (message, errorCode) {
18+
if(errorCode == -2808)
19+
message = '<div style="padding:0">Sorry. Your product key has expired. You can purchase a full license at the <a target="_blank" href="https://www.dynamsoft.com/store/dynamic-web-twain/#DynamicWebTWAIN">online store</a>.</div><div style="padding:0">Or, you can try requesting a new product key at <a target="_blank" href="https://www.dynamsoft.com/customer/license/trialLicense?product=dwt&utm_source=in-product">this page</a>.</div><div style="padding:0">If you need any help, please <a target="_blank" href="https://www.dynamsoft.com/company/contact/">contact us</a>.</div>';
20+
(Dynamsoft.DWT as any).ShowMessage(message, {
21+
width: 680,
22+
headerStyle: 2
23+
});
24+
};
1725
Dynamsoft.DWT.Containers = [{ WebTwainId: 'dwtObject', ContainerId: this.containerId, Width: '300px', Height: '400px' }];
1826
Dynamsoft.DWT.RegisterEvent('OnWebTwainReady', () => { this.Dynamsoft_OnReady(); });
1927
Dynamsoft.DWT.ResourcesPath = '/assets/dwt-resources';
20-
Dynamsoft.DWT.ProductKey = 't0107KwEAAGoasMG9xI2Iav49dLPDNR+pjYp+ZwC2Mlvgf6RlAzGLYngM9RNg61sTaf9/OD1pJlJXhwmYhR5+GMEoOwjbuYGgASjT+QPI3FtFsOLXoefiCRicwwBsBUgYf159kSEbmSTpAaZBPWg=';
28+
Dynamsoft.DWT.ProductKey = "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9";
2129
Dynamsoft.DWT.Load();
2230
}
2331

0 commit comments

Comments
 (0)