Skip to content

Commit 282c002

Browse files
authored
Update DecodeFromScannerAndWebcam.cs
1 parent 217e0ce commit 282c002

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

samples/UseCases/DecodeFromScannerAndWebcam/DecodeFromScannerAndWebcam.cs

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -100,19 +100,10 @@ public DecodeFromScannerAndWebcam()
100100
dsViewer.MouseShape = true;
101101
dsViewer.Annotation.Type = Dynamsoft.Forms.Enums.EnumAnnotationType.enumNone;
102102

103-
// Initialize license
104-
/*
105-
// By setting organization ID as "200001", a free public trial license will be used for license verification.
106-
// Note that network connection is required for this license to work.
107-
//
108-
// When using your own license, locate the following line and specify your Organization ID.
109-
// organizationID = "200001";
110-
//
111-
// If you don't have a license yet, you can request a trial from https://www.dynamsoft.com/customer/license/trialLicense?product=dbr&utm_source=samples&package=dotnet
112-
*/
113-
DMDLSConnectionParameters connectionInfo = BarcodeReader.InitDLSConnectionParameters();
114-
connectionInfo.OrganizationID = "200001";
115-
EnumErrorCode errorCode = BarcodeReader.InitLicenseFromDLS(connectionInfo, out string errorMsg);
103+
// 1.Initialize license.
104+
// The string "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" here is a free public trial license. Note that network connection is required for this license to work.
105+
// You can also request a 30-day trial license in the customer portal: https://www.dynamsoft.com/customer/license/trialLicense?product=dbr&utm_source=github&package=dotnet
106+
EnumErrorCode errorCode = BarcodeReader.InitLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", out string errorMsg);
116107
if (errorCode != EnumErrorCode.DBR_SUCCESS)
117108
{
118109
MessageBox.Show(errorMsg, "License initiation failed", MessageBoxButtons.OK, MessageBoxIcon.Error);

0 commit comments

Comments
 (0)