Skip to content

Commit bbc8611

Browse files
authored
Update Form1.cs
1 parent 282c002 commit bbc8611

File tree

1 file changed

+4
-13
lines changed
  • samples/UseCases/ProcessDocumentsByBarcodes

1 file changed

+4
-13
lines changed

samples/UseCases/ProcessDocumentsByBarcodes/Form1.cs

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,10 @@ public Form1()
2828
InitializeComponent();
2929
InitialDefaultValue();
3030

31-
// Initialize license
32-
/*
33-
// By setting organization ID as "200001", a free public trial license will be used for license verification.
34-
// Note that network connection is required for this license to work.
35-
//
36-
// When using your own license, locate the following line and specify your Organization ID.
37-
// organizationID = "200001";
38-
//
39-
// 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
40-
*/
41-
DMDLSConnectionParameters connectionInfo = BarcodeReader.InitDLSConnectionParameters();
42-
connectionInfo.OrganizationID = "200001";
43-
EnumErrorCode errorCode = BarcodeReader.InitLicenseFromDLS(connectionInfo, out string errorMsg);
31+
// 1.Initialize license.
32+
// The string "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" here is a free public trial license. Note that network connection is required for this license to work.
33+
// 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
34+
EnumErrorCode errorCode = BarcodeReader.InitLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", out string errorMsg);
4435
if (errorCode != EnumErrorCode.DBR_SUCCESS)
4536
{
4637
MessageBox.Show("License initiation failed: " + errorMsg, strMessageBoxCaption, MessageBoxButtons.OK, MessageBoxIcon.Error);

0 commit comments

Comments
 (0)