|
1 | 1 | --- |
2 | | -title: Bar Code Recognition Specifics |
| 2 | +title: Barcode Recognition Specifics |
3 | 3 | author: Anna Gubareva |
4 | 4 | --- |
5 | | -# Bar Code Recognition Specifics |
| 5 | +# Barcode Recognition Specifics |
6 | 6 |
|
7 | | -This document describes the main specifics of bar code recognition and how to resolve the most frequently encountered issues when working with bar codes. |
| 7 | +This document describes the main specifics of barcode recognition and how to resolve the most frequently encountered issues when working with barcodes. |
8 | 8 |
|
9 | | -## Choose an Appropriate Bar Code Type |
10 | | -Selecting an appropriate bar code type (symbology) depends on your specific business requirements and the applied industrial standards. |
| 9 | +## Choose an Appropriate Barcode Type |
| 10 | +Selecting an appropriate barcode type (symbology) depends on your specific business requirements and the applied industrial standards. |
11 | 11 |
|
12 | | -In general, consider using [Bar Code 2 of 5 Interleaved](interleaved-2-of-5.md) for encoding digits and [Bar Code 39](code-39-usd-3.md) for encoding the full range of ASCII characters. |
| 12 | +In general, consider using [Barcode 2 of 5 Interleaved](interleaved-2-of-5.md) for encoding digits and [Barcode 39](code-39-usd-3.md) for encoding the full range of ASCII characters. |
13 | 13 |
|
14 | | -## Insert the Function Code One Character (FNC1) or the Application Identifier into a Bar Code |
15 | | -Some encodings enable you to insert a special **FNC1** character for separating application identifiers from the rest of the bar code. |
| 14 | +## Insert the Function Code One Character (FNC1) or the Application Identifier into a Barcode |
| 15 | +Some encodings enable you to insert a special **FNC1** character for separating application identifiers from the rest of the barcode. |
16 | 16 |
|
17 | 17 | According to the **GS1** specification, the **FNC1** character is always inserted at the first position of the encoded data. Other identifiers can be inserted manually using the default "**#**" character. |
18 | 18 |
|
19 | 19 | Although you can use any ASCII character as the **FNC1** placeholder, it will not be a part of the encoded data as it does not have any direct ASCII representation. |
20 | 20 |
|
21 | 21 | > [!NOTE] |
22 | | -> For the [Code 128](code-128.md) symbology, only **FNC1** characters are currently supported. At present, there is no way to define **FNC2** - **4** characters for this bar code. |
| 22 | +> For the [Code 128](code-128.md) symbology, only **FNC1** characters are currently supported. At present, there is no way to define **FNC2** - **4** characters for this barcode. |
23 | 23 |
|
24 | 24 | For the list of the available application identifiers, refer to the official documentation at [www.gs1.org](http://www.gs1.org/). |
25 | 25 |
|
26 | | -## Specify the Bar Code Resolution on Export to Third-Party Formats |
27 | | -At present, only [export to PDF](../../../../print-preview/print-preview-for-winforms/exporting/pdf-specific-export-options.md) preserves the original bar code in its vector form. Export to other formats will keep only the rasterized version of a bar code (with the default DPI set to **96**). |
| 26 | +## Specify the Barcode Resolution on Export to Third-Party Formats |
| 27 | +At present, only [export to PDF](../../../../print-preview/print-preview-for-winforms/exporting/pdf-specific-export-options.md) preserves the original barcode in its vector form. Export to other formats will keep only the rasterized version of a barcode (with the default DPI set to **96**). |
28 | 28 |
|
29 | 29 | For [XLSX](../../../../print-preview/print-preview-for-winforms/exporting/xlsx-specific-export-options.md) and [XLS](../../../../print-preview/print-preview-for-winforms/exporting/xls-specific-export-options.md) export, the output resolution can be set up manually using the **Rasterization Resolution** property. |
30 | 30 |
|
31 | 31 | ## Common Issues |
32 | | -This document section provides solutions to the most common issues that you may encounter when creating bar codes. |
| 32 | +This document section provides solutions to the most common issues that you may encounter when creating barcodes. |
33 | 33 |
|
34 | | -* **The bar code is too "dense"** |
| 34 | +* **The barcode is too "dense"** |
35 | 35 |
|
36 | | - The more information you wish to encode, the more bars should be drawn and the larger the bar code should become. |
| 36 | + The more information you wish to encode, the more bars should be drawn and the larger the barcode should become. |
37 | 37 |
|
38 | | - The bar code's **Module** property specifies the width of the narrowest bar in a bar code. Although you can set this property to a very small value, the actual value is determined by the maximum resolution of your bar code printer device. Alternatively, consider using the **Auto Module** option to automatically calculate the optimal bar size based on the current bar code dimensions. |
| 38 | + The barcode's **Module** property specifies the width of the narrowest bar in a barcode. Although you can set this property to a very small value, the actual value is determined by the maximum resolution of your barcode printer device. Alternatively, consider using the **Auto Module** option to automatically calculate the optimal bar size based on the current barcode dimensions. |
39 | 39 |
|
40 | 40 | > [!NOTE] |
41 | | - > When bar codes are "dense" and you are manually specifying the Module value, make sure that multiplying this value by the bar code printer resolution results in an integer number. Otherwise, rounding errors may occur on calculating the resulting bar width. |
| 41 | + > When barcodes are "dense" and you are manually specifying the Module value, make sure that multiplying this value by the barcode printer resolution results in an integer number. Otherwise, rounding errors may occur on calculating the resulting bar width. |
42 | 42 | > |
43 | | - > For example, when the Module is set to **0.015** inches and the printer resolution is **300** DPI, their product equals **4.5**, which may be rounded to **4** or **5** pixels for different bars and result in bar code recognition errors. In this case, the Module property should be set to **0.01333** (to make the bar width equal to **4** pixels) or to **0.01667** (to make the bar width equal to **5** pixels). |
44 | | -* **The bar code is correctly displayed on the preview but it is not scanned** |
| 43 | + > For example, when the Module is set to **0.015** inches and the printer resolution is **300** DPI, their product equals **4.5**, which may be rounded to **4** or **5** pixels for different bars and result in barcode recognition errors. In this case, the Module property should be set to **0.01333** (to make the bar width equal to **4** pixels) or to **0.01667** (to make the bar width equal to **5** pixels). |
| 44 | +* **The barcode is correctly displayed on the preview but it is not scanned** |
45 | 45 |
|
46 | | - Make sure that your scanner has been correctly set up to be able to recognize a specific kind of a bar code. If you are not certain about how to operate the scanner properly, please refer to its product manual. |
| 46 | + Make sure that your scanner has been correctly set up to be able to recognize a specific kind of a barcode. If you are not certain about how to operate the scanner properly, please refer to its product manual. |
47 | 47 |
|
48 | | - Avoid scanning bar codes from the monitor screen (e.g., using an application installed on your smartphone), because the screen DPI may not be sufficient to effectively recognize each particular bar. |
49 | | -* **The bar code is correctly displayed on the preview but it is scanned incorrectly** |
| 48 | + Avoid scanning barcodes from the monitor screen (e.g., using an application installed on your smartphone), because the screen DPI may not be sufficient to effectively recognize each particular bar. |
| 49 | +* **The barcode is correctly displayed on the preview but it is scanned incorrectly** |
50 | 50 |
|
51 | 51 | The cause for this problem may be an encoding issue specific to the "binary" input mode. |
52 | 52 |
|
53 | 53 | By default, the **UTF-16** encoding is used. However, your scanner device may use a different encoding model or even a codepage (i.e., a specific table that maps abstract values to real human-understandable characters). For additional information on this subject, please refer to the specification of your scanner device. |
54 | 54 | * **The "There are invalid characters in the text" error occurs** |
55 | 55 |
|
56 | | - Different bar code symbologies define different ranges of allowed characters under different character sets. To avoid this error, please check the bar code specification. |
| 56 | + Different barcode symbologies define different ranges of allowed characters under different character sets. To avoid this error, please check the barcode specification. |
0 commit comments