MENU
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.

.Net API Reference - BarcodeReader License Methods

Method Description
InitLicenseFromServer Initializes license and connect to the specified server for online verification.
InitLicenseFromLicenseContent Initializes barcode reader license and connects to the specified server for online verification.
OutputLicenseToString Outputs the license content as an encrypted string from the license server to be used for offline license verification.
InitLTSConnectionParameters Initializes a DMLTSConnectionParameters struct with default values.
InitLicenseFromLTS Initializes the barcode reader license and connects to the specified server for online verification.

InitLicenseFromServer

Initializes the license and connect to the specified server for online verification.

int Dynamsoft.DBR.BarcodeReader.InitLicenseFromServer(string licenseServer, string licenseKey)

Parameters

[in] licenseServer <string> : The name/IP of the license server.
[in] licenseKey <string> : The license key of Barcode Reader.

Return value

Returns error code.

 

InitLicenseFromLicenseContent

Initializes barcode reader license and connects to the specified server for online verification.

int Dynamsoft.DBR.BarcodeReader.InitLicenseFromLicenseContent(string licenseKey, string strLicenseContent)

Parameters

[in] licenseKey <string> : The license key of Barcode Reader.
[in] pLicenseContent <string> : An encrypted string representing the license content (runtime number, expiry date, barcode type, etc.) obtained from the method OutputLicenseToString().

Return value

Returns error code.

Code Snippet

BarcodeReader reader = new BarcodeReader();
PublicRuntimeSettings settings = reader.GetRuntimeSettings();
settings.IntermediateResultType = (int)EnumIntermediateResultType.IRT_ORIGINAL_IMAGE;
reader.UpdateRuntimeSettings(settings);
reader.DecodeFile("Your file path", "");
IntermediateResult[] IMR = reader.GetIntermediateResults();
TextResult[] result = reader.DecodeIntermediateResults();

 

OutputLicenseToString

Outputs the license content as an encrypted string from the license server to be used for offline license verification.

string Dynamsoft.DBR.BarcodeReader.OutputLicenseToString()

Return value

The output string which stores the contents of license.

 

InitLTSConnectionParameters

Initializes a DMLTSConnectionParameters struct with default values.

DMLTSConnectionParameters Dynamsoft.DBR.BarcodeReader.InitLTSConnectionParameters()

Code Snippet

BarcodeReader reader = new BarcodeReader();
DMLTSConnectionParameters ltsInfo = reader.InitLTSConnectionParameters();
ltsInfo.HandShake = "*****-hs-****";
ltsInfo.SessionPassword = "******";
string errorMsg;
readr.InitLicenseFromLts(ltsInfo, out errorMsg);

 

InitLicenseFromLTS

Initializes the barcode reader license and connects to the specified server for online verification.

EnumErrorCode Dynamsoft.DBR.BarcodeReader.InitLicenseFromLTS(DMLTSConnectionParameters ltsConnectionParameters, out string errorMsg)

Parameters

[in] ltsConnectionParameters <string> : The struct DMLTSConnectionParameters with customized settings.
[in, out] errorMsg <string> : The detailed error message.

Return value

Returns error code.

Code Snippet

BarcodeReader reader = new BarcodeReader();
DMLTSConnectionParameters ltsInfo = reader.InitLTSConnectionParameters();
ltsInfo.HandShake = "*****-hs-****";
ltsInfo.SessionPassword = "******";
string errorMsg;
readr.InitLicenseFromLts(ltsInfo, out errorMsg);

 

This page is compatible for:

Version 7.5

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest Version
  • version 7.6
  • version 7.5
Change +
© 2003–2020 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support