diff --git a/_includes/sidelist-programming/programming-javascript-v10.0.21.html b/_includes/sidelist-programming/programming-javascript-v10.0.21.html index 3a6858c0..847517ac 100644 --- a/_includes/sidelist-programming/programming-javascript-v10.0.21.html +++ b/_includes/sidelist-programming/programming-javascript-v10.0.21.html @@ -1148,6 +1148,10 @@ barcodes via video in iOS 16.7 or 17? +
  • + How to Enable Specific Barcode Formats with Your License? +
  • OTHERS
  • diff --git a/_includes/sidelist-programming/programming-javascript-v10.2.1000.html b/_includes/sidelist-programming/programming-javascript-v10.2.1000.html index 9910d1da..9140bd94 100644 --- a/_includes/sidelist-programming/programming-javascript-v10.2.1000.html +++ b/_includes/sidelist-programming/programming-javascript-v10.2.1000.html @@ -1582,6 +1582,10 @@ barcodes via video in iOS 16.7 or 17? +
  • + How to Enable Specific Barcode Formats with Your License? +
  • OTHERS
  • diff --git a/_includes/sidelist-programming/programming-javascript.html b/_includes/sidelist-programming/programming-javascript.html index 0d1fa38d..0d85b561 100644 --- a/_includes/sidelist-programming/programming-javascript.html +++ b/_includes/sidelist-programming/programming-javascript.html @@ -1674,6 +1674,10 @@ >What are the system requirements for running the latest version of Dynamsoft Barcode Reader? +
  • + How to Enable Specific Barcode Formats with Your License? +
  • License Initialization
  • diff --git a/programming/javascript/faq/enable-supported-barcode-format.md b/programming/javascript/faq/enable-supported-barcode-format.md new file mode 100644 index 00000000..19dfde43 --- /dev/null +++ b/programming/javascript/faq/enable-supported-barcode-format.md @@ -0,0 +1,49 @@ +--- +layout: default-layout +title: How to Enable Specific Barcode Formats with Your License? +keywords: Dynamsoft Barcode Reader, FAQ, JavaScript, tech basic, barcode format, no license found +description: When moving from a trial license to a production license, you may encounter the error `[xxx] No license found` if your enabled barcode formats don't match the formats supported by your license? +needAutoGenerateSidebar: false +--- + +# How to Enable Specific Barcode Formats with Your License +[<< Back to FAQ index](index.md) + +## Problem +When moving from a trial license to a production license, you may encounter the error `[xxx] No license found` if your enabled barcode formats don't match the formats supported by your license. This occurs because the SDK validates enabled formats against your license's capabilities. + +## Solution +Explicitly enable **only the barcode formats covered by your license** in your code configuration. + +--- + +### Step-by-Step Guide + +1. **Check Your License Coverage** + Confirm which barcode formats your license supports (e.g., QR Code + 1D barcodes). + +2. **Configure Barcode Formats** + Update your code to explicitly enable **only the licensed formats**. + - Example for Enabling **QR Code Only**: + + ```javascript + let settings = await router.getSimplifiedSettings("ReadSingleBarcode"); + // Enable QR Code only + settings.barcodeSettings.barcodeFormatIds = + Dynamsoft.DBR.EnumBarcodeFormat.BF_QR_CODE; + await router.updateSettings("ReadSingleBarcode", settings); + await router.startCapturing("ReadSingleBarcode"); + ``` + + - Example for Enabling **Multiple Formats**: + + Use bitwise OR (|) to combine formats. + ```javascript + // Enable QR Code and 1D + settings.barcodeSettings.barcodeFormatIds = + Dynamsoft.DBR.EnumBarcodeFormat.BF_QR_CODE | Dynamsoft.DBR.EnumBarcodeFormat.BF_ONED; + ``` + +4. **Verify Supported Formats** + + View the complete list of supported barcode formats and their corresponding IDs here: [Barcode Format Documentation](https://www.dynamsoft.com/capture-vision/docs/core/enums/barcode-reader/barcode-format.html?lang=js&product=dbr) diff --git a/programming/javascript/faq/index.md b/programming/javascript/faq/index.md index dd1067c3..7b8b10db 100644 --- a/programming/javascript/faq/index.md +++ b/programming/javascript/faq/index.md @@ -85,4 +85,7 @@ noTitleIndex: true 38. [Why isn't my webcam reading the barcode on my driver's license or ID card?](webcam-support-dense.md) -39. [What are the system requirements for running the latest version of Dynamsoft Barcode Reader?](system-requirement.md) \ No newline at end of file +39. [What are the system requirements for running the latest version of Dynamsoft Barcode Reader?](system-requirement.md) + +40. [How to Enable Specific Barcode Formats with Your License?](enable-supported-barcode-format.md +)