Skip to content

Commit ad5cf4a

Browse files
authored
Merge pull request #424 from dynamsoft-docs/main
merge main to preview
2 parents 8ec85d8 + ddda468 commit ad5cf4a

File tree

5 files changed

+65
-1
lines changed

5 files changed

+65
-1
lines changed

_includes/sidelist-programming/programming-javascript-v10.0.21.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,6 +1148,10 @@
11481148
barcodes via video in iOS 16.7 or 17?</a
11491149
>
11501150
</li>
1151+
<li>
1152+
<a href="{{ site.js }}faq/enable-supported-barcode-format.html"
1153+
>How to Enable Specific Barcode Formats with Your License?</a>
1154+
</li>
11511155
</ul>
11521156
</li>
11531157
<li class="category">OTHERS</li>

_includes/sidelist-programming/programming-javascript-v10.2.1000.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,6 +1582,10 @@
15821582
barcodes via video in iOS 16.7 or 17?</a
15831583
>
15841584
</li>
1585+
<li>
1586+
<a href="{{ site.js }}faq/enable-supported-barcode-format.html"
1587+
>How to Enable Specific Barcode Formats with Your License?</a>
1588+
</li>
15851589
</ul>
15861590
</li>
15871591
<li class="category">OTHERS</li>

_includes/sidelist-programming/programming-javascript.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,6 +1674,10 @@
16741674
>What are the system requirements for running the latest version of Dynamsoft Barcode Reader?</a
16751675
>
16761676
</li>
1677+
<li>
1678+
<a href="{{ site.js }}faq/enable-supported-barcode-format.html"
1679+
>How to Enable Specific Barcode Formats with Your License?</a>
1680+
</li>
16771681
</ul>
16781682
</li>
16791683
<li lang="javascript"><a href="{{ site.license_activation }}index.html" class="otherLinkColour">License Initialization</a></li>
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
layout: default-layout
3+
title: How to Enable Specific Barcode Formats with Your License?
4+
keywords: Dynamsoft Barcode Reader, FAQ, JavaScript, tech basic, barcode format, no license found
5+
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?
6+
needAutoGenerateSidebar: false
7+
---
8+
9+
# How to Enable Specific Barcode Formats with Your License
10+
[<< Back to FAQ index](index.md)
11+
12+
## Problem
13+
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.
14+
15+
## Solution
16+
Explicitly enable **only the barcode formats covered by your license** in your code configuration.
17+
18+
---
19+
20+
### Step-by-Step Guide
21+
22+
1. **Check Your License Coverage**
23+
Confirm which barcode formats your license supports (e.g., QR Code + 1D barcodes).
24+
25+
2. **Configure Barcode Formats**
26+
Update your code to explicitly enable **only the licensed formats**.
27+
- Example for Enabling **QR Code Only**:
28+
29+
```javascript
30+
let settings = await router.getSimplifiedSettings("ReadSingleBarcode");
31+
// Enable QR Code only
32+
settings.barcodeSettings.barcodeFormatIds =
33+
Dynamsoft.DBR.EnumBarcodeFormat.BF_QR_CODE;
34+
await router.updateSettings("ReadSingleBarcode", settings);
35+
await router.startCapturing("ReadSingleBarcode");
36+
```
37+
38+
- Example for Enabling **Multiple Formats**:
39+
40+
Use bitwise OR (|) to combine formats.
41+
```javascript
42+
// Enable QR Code and 1D
43+
settings.barcodeSettings.barcodeFormatIds =
44+
Dynamsoft.DBR.EnumBarcodeFormat.BF_QR_CODE | Dynamsoft.DBR.EnumBarcodeFormat.BF_ONED;
45+
```
46+
47+
4. **Verify Supported Formats**
48+
49+
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)

programming/javascript/faq/index.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,7 @@ noTitleIndex: true
8585

8686
38. [Why isn't my webcam reading the barcode on my driver's license or ID card?](webcam-support-dense.md)
8787

88-
39. [What are the system requirements for running the latest version of Dynamsoft Barcode Reader?](system-requirement.md)
88+
39. [What are the system requirements for running the latest version of Dynamsoft Barcode Reader?](system-requirement.md)
89+
90+
40. [How to Enable Specific Barcode Formats with Your License?](enable-supported-barcode-format.md
91+
)

0 commit comments

Comments
 (0)