Resource Base
Table of contents

Thanks for downloading Dynamsoft Barcode Reader Package!

Your download will start shortly. If your download does not begin, click here to retry.

How to set trial license

From version 8.2, if you are using the mobile edition, please check how to apply for a private trial license. For other editions, please follow the steps below:

Get a trial license key.

You can log in the customer portal and request for a trial extension online.

Note: If the trial license expires or it is missing, you can still get barcode reading results but partial of the result will be masked with “*”.

Update the license key in source code.

You can use initLicense() or ProductKeys to set the license.

Code snippet in C:

 void *hBarcode = NULL;
 hBarcode = DBR_CreateInstance();
 DBR_InitLicense(hBarcode, "t0068NQAAAI8+mMcYRNwmijAzExhq******");
 DBR_DestroyInstance(hBarcode);

Code snippet in C++:

 CBarcodeReader reader = new CBarcodeReader();
 reader.InitLicense("t0068NQAAAI8+mMcYRNwmijAzExhq******");

Code snippet in C#:

 BarcodeReader reader = new BarcodeReader();
 reader.ProductKeys = "t0068NQAAAI8+mMcYRNwmijAzExhq******";

Code snippet in VB. NET:

 Dim reader As BarcodeReader = New Dynamsoft.Barcode.BarcodeReader()
 reader.ProductKeys = "t0068NQAAAI8+mMcYRNwmijAzExhq******"

Code snippet in Java:

 BarcodeReader mBarcodeReader;
 mBarcodeReader = new BarcodeReader("t0068NQAAAI8+mMcYRNwmijAzExhq******");

Code snippet in PHP:

 $br = new BarcodeReader();
 $br->initLicense("t0068NQAAAI8+mMcYRNwmijAzExhq******");

Code snippet in Python:

 reader = BarcodeReader()
 reader.init_license("t0068NQAAAI8+mMcYRNwmijAzExhq******")

Code snippet in JavaScript:

 < script src = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@{version-number}/dist/dbr.js"
 data - productKeys = "t0068NQAAAI8+mMcYRNwmijAzExhq******" > < /script>

Then please save and rebuild your application.

How to apply for a private trial license

From version 8.2, the mobile edition comes with a 7-day free trial license called a “public trial” license which is built into the product itself. When this public trial license expires, you can get a 30-day free trial license called a “private trial” license following the steps below

  1. Email trial@dynamsoft.com and make sure to include the word “privateTrial” in the email title.
  2. Dynamsoft will automatically create an organization for you and generate a 30-day trial license for that organization. After that, an email will be sent to you.
  3. You can then access the private trial license by specifying the organization ID in your code with the API “organizationID”.

NOTE

In case a private trial license fails to be generated, Dynamsoft Support team will get in touch with you.

Code snippets

  • Java for Android
mbarcodeReader = new BarcodeReader();
DMLTSConnectionParameters ltspar = new DMLTSConnectionParameters();
ltspar.organizationID = "Your-organization-id"; //automatically generated and sent to you by our system
mbarcodeReader.initLicenseFromLTS(ltspar, new DBRLTSLicenseVerificationListener() {
    @Override
    public void LTSLicenseVerificationCallback(boolean b, Exception e) {
        if (e != null){ Log.i("lts error: ", e.getMessage());  } 
    }
});
  • Objective-C for iOS
DynamsoftBarcodeReader *barcodeReader; 
iDMLTSConnectionParameters* lts = [[iDMLTSConnectionParameters alloc] init]; 
lts.organizationID = @"Your-organization-id"; //automatically generated and sent to you by our system
barcodeReader = [[DynamsoftBarcodeReader alloc] initLicenseFromLTS:lts verificationDelegate:self]; 
* (void)LTSLicenseVerificationCallback:(bool)isSuccess error:(NSError * _Nullable)error
{​​​​​​​​
    //TODO add your code for license verification
}​​​​​​​​

This page is compatible for:

Version 7.5.0

Is this page helpful?

YesYes NoNo

version 8.2.0

  • Latest version
  • Version 8.6.0
  • Version 8.4.0
  • Version 8.2.5
  • Version 8.2.3
  • Version 8.2.1
  • Version 8.2.0
  • Version 8.1.3
  • Version 8.1.2
  • Version 8.1.0
  • Version 8.0.0
  • Version 7.6.0
  • Version 7.5.0
Change +
© 2003–2021 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support