Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,10 @@
barcodes via video in iOS 16.7 or 17?</a
>
</li>
<li>
<a href="{{ site.js }}faq/enable-supported-barcode-format.html"
>How to Enable Specific Barcode Formats with Your License?</a>
</li>
</ul>
</li>
<li class="category">OTHERS</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1582,6 +1582,10 @@
barcodes via video in iOS 16.7 or 17?</a
>
</li>
<li>
<a href="{{ site.js }}faq/enable-supported-barcode-format.html"
>How to Enable Specific Barcode Formats with Your License?</a>
</li>
</ul>
</li>
<li class="category">OTHERS</li>
Expand Down
4 changes: 4 additions & 0 deletions _includes/sidelist-programming/programming-javascript.html
Original file line number Diff line number Diff line change
Expand Up @@ -1674,6 +1674,10 @@
>What are the system requirements for running the latest version of Dynamsoft Barcode Reader?</a
>
</li>
<li>
<a href="{{ site.js }}faq/enable-supported-barcode-format.html"
>How to Enable Specific Barcode Formats with Your License?</a>
</li>
</ul>
</li>
<li lang="javascript"><a href="{{ site.license_activation }}index.html" class="otherLinkColour">License Initialization</a></li>
Expand Down
49 changes: 49 additions & 0 deletions programming/javascript/faq/enable-supported-barcode-format.md
Original file line number Diff line number Diff line change
@@ -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)
5 changes: 4 additions & 1 deletion programming/javascript/faq/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
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
)