PC SOFT

WINDEV的在线文档

  • Overview
  • The bar codes supported by WinDev/WebDev/WinDev Mobile
  • Supported bar codes
  • UPC bar code (Universal Product Code)
  • EAN bar code (European Article Numbering system)
  • INTER2OF5 bar code
  • CODABAR bar code
  • MSI bar code
  • Code 39 bar code
  • Code 128 bar code
  • DataMatrix bar code
  • PDF 417 bar code
  • QR code
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Overview
The use of bar codes to identify and manage products has become essential.

The principle of bar codes is straightforward: several vertical or square strips of different size and width are used to encode a set of information.

The information represented by a bar code is a series of numeric or alphanumeric characters. This information can be completed by characters used to simplify the reading or by control characters.

This information can be read:

  • WinDev via a dedicated device and retrieved in a WinDev application.
    16版本和更高版本
    For the QR Code bar codes, you also have the ability to read a bar code found in an image.
    16新版本
    For the QR Code bar codes, you also have the ability to read a bar code found in an image.
    For the QR Code bar codes, you also have the ability to read a bar code found in an image.
These bar codes can be printed from a WinDev, WinDev Mobile (for Windows Mobile) application or a WebDev site.

WinDev, WinDev Mobile and WebDev enable you to manage several types of bar codes. All these types can be printed. See Printing bar codes for more details.

The bar codes supported by WinDev/WebDev/WinDev Mobile

Supported bar codes

Different types of bar codes are available. Each one is used in a specific field. Let's take a look at the main types of bar codes, all supported by WinDev/WebDev:
  • UPC (Universal Product Code): Bar code found on the supermarket products (USA).
  • EAN (European Article Numbering system): European extension of the UPC code.
  • INTER2OF5: Bar code used in the industrial area.
  • CODABAR: Bar code used in book stores, blood banks.
  • MSI code: Coding performed bit by bit, each bit being the combination of a solid bar and an empty bar.
  • Code 39: First alphanumeric bar code developed.
  • Code 128: Alphanumeric code with high density.
  • DataMatrix code: Bar code in 2 dimensions, allowing the coding of a lot of information on a small surface. This type of bar code is used for the electronic components for example.
  • 417 PDF code: Bar code in 2 dimensions. This type of bar code can support up to 2000 characters. This type of bar code is used in health care, transportation, ...
  • 16版本和更高版本
    QR Code: Bar code in 2 dimensions. This type of bar code is used to store different types of information (Web addresses, text, phone numbers, SMS, ...) and it can be directly used by the mobile phones or by the smartphones.
    16新版本
    QR Code: Bar code in 2 dimensions. This type of bar code is used to store different types of information (Web addresses, text, phone numbers, SMS, ...) and it can be directly used by the mobile phones or by the smartphones.
    QR Code: Bar code in 2 dimensions. This type of bar code is used to store different types of information (Web addresses, text, phone numbers, SMS, ...) and it can be directly used by the mobile phones or by the smartphones.

The following paragraphs present these types of bar codes and their characteristics supported by WinDev, WinDev Mobile and WebDev.

UPC bar code (Universal Product Code)

Bar code found on the supermarket products (USA). Its overall size is 12 digits. It contains:
  • the supplier code (5 characters).
  • the product code (5 characters).
  • a system number.
  • a control character.

EAN bar code (European Article Numbering system)

EAN 13 code
European extension of the UPC code. Several versions exist:
  • EAN 13, containing the 12 characters of the UPC code and a parity control character.
  • EAN 8, containing 2 reserved characters, a code on 5 characters and a control character.
  • EAN 128: see code 128

INTER2OF5 bar code

Bar code used in the industrial areas, compact with a maximum of 18 character by inch. It is mainly used for totally automated reading.

CODABAR bar code

Bar code used in book stores, blood banks. It accepts characters in addition to digits: "$ABCD./+:-".

The string must start and end with a START/STOP character. The START/STOP characters are A, B, C, D. The character A is automatically added if this character is not found in the string.

Example of value: "A123456789123456789A"

MSI bar code

Coding performed bit by bit, each bit being the combination of a solid bar and an empty bar. It accepts 10 digits and 6 additional characters.
Characteristics supported for this bar code:
  • Bar codes with check: the last character of the bar code corresponds to a control character.
  • Extended bar code: an extended bar code can contain the 128 characters found in the ASCII code.

Code 39 bar code

First alphanumeric bar code developed. Originally, it accepts the 26 letters of the alphabet in uppercase characters. With extension, the 128 ASCII codes are accessible.
The Code 93 is an extension of code 39.

Characteristics supported for this bar code:
  • Bar codes with check: the last character of the bar code corresponds to a control character.
  • Extended bar code: an extended bar code can contain the 128 characters found in the ASCII code.
The * character is reserved for START and STOP: it cannot be used in the code (except if the bar code is extended).

Code 128 bar code

Alphanumeric code with high density.
It uses three different sets of characters. The set of characters used is automatically selected by WinDev, WebDev or WinDev Mobile to draw the smallest possible bar code.
A correction character is automatically generated. Its value is equal to the weighed sum of the values of characters modulo 103.

Control characters

The following control characters are accepted: <FNC1>, <NUL>, <FNC2>, <FNC3>, <FNC4>, <SHIFT>.

Example: Encoding a FNC1 character before the "CODE <128>" string: "<FNC1>CODE <<128>"

The values specified between < > are encoded as they are (regardless of the selected set of characters).

Example: WLanguage code used to print the following EAN128 bar code:

(01)93067280205495(3103)018750

打印预览打印.百分百
打印条形码"01<FNC1>93067280205495<FNC1>3103018750",...
条形码.EAN12820209090条形码.数字控制
打印结束

Note: The brackets are not printed but they are used to separate the data in the text intended to be read by a human being. The <FNC1> character is used to separate the data in a EAN128 bar code. FNC1 is a control character. To insert it into the string to encode, specify the BC_ControlDigits constant (or "Specify the control characters" in the report editor).

Sets of characters

By default, the set of characters used is automatically selected by WinDev, WebDev or WinDev Mobile to draw the smallest possible bar code.

The following control characters enable you to specify the set of characters that will be used:

  • to specify the set of characters at the beginning of the bar code: <START A>, <START B>, <START C>. If no START is specified, the "CODE A" set is used by default.
  • to change the set of characters in the bar code: <CODE A>, <CODE B>, <CODE C>.
Example: WLanguage code used to print a bar code with the following characteristics: the first 3 alphanumeric characters must be in set B and the last 10 ones in set C:

打印预览打印.百分百
打印条形码"<START B>ABC<CODE C>0123456789"条形码.CODE12820208060条形码.字符集
打印结束()

DataMatrix bar code

Bar code in 2 dimensions, allowing to code up to 2335 alphanumeric characters or 3116 numeric characters on a small surface. This type of bar code is used for the electronic components for example.

Characteristics supported for this bar code:
  • The size of the matrix. By default, the size of the matrix is calculated according the size of the string and it is optimized to get a square matrix.
  • The control characters: The following control characters are accepted: <FNC1>, <NUL>, <PAD>, <STRUCTURED APPEND>, <READER PROGRAMMING>, <05 MACRO>, <06 MACRO>, <ECI>.
  • Set of characters: The choice of the set of characters is optimized in order to write the smallest possible bar code.
    The following control characters enable you to specify the set of characters that will be used: <ASCII>, <C40>, <TEXT>, <X12>, <EDIFACT>, <BASE256>. The default set of characters is "ASCII". This set must be used to specify a value that is already encoded or to specify another set of characters. To go back to the ASCII code from another set of characters, al you have to do is specify <ASCII>.

PDF 417 bar code

Bar code in 2 dimensions. This type of bar code can support up to 2000 characters (the one-dimensional bar codes do not support more than 30 characters).
The storage capacity of this type of bar code is very important.
This type of bar code is used in health care, transportation, ...

For the PDF417 bar codes, the following characteristics are also supported:
  • By default, the size of the matrix is calculated according to the size of the string
  • Level of correction calculated according to the length (after compression) of the data to encode:
    • from 1 to 40 characters: level 2
    • from 41 to 160 characters: level 3
    • from 161 to 320 characters: level 4
    • from 321 characters: level 5
  • Line height: 4 by default
  • Control characters: The accepted control characters are <NUL> and <READER INIT>.
  • Set of characters: By default, the choice of the set of characters is optimized in order to write the smallest possible bar code.
    The following control characters enable you to specify the set of characters that will be used: <TC ALPHA>, <TC LOWER>, <TC MIXED>, <TC PUNCTUATION>, <BC>, <NC>.

Example: WLanguage code used to print a PDF 147 bar code by specifying the set of characters:

打印预览打印.百分百
打印条形码"<READER INIT><TC LOWER>abcd<TC MIXED><TC PUNCTUATION>(?)",...
条形码.PDF41700200200条形码.数字控制+条形码.字符集
打印结束()

16版本和更高版本

QR code

Bar code in 2 dimensions, made of black modules arranged in a square with a white background. This type of bar code is intended to be read by a reader of QR code, a mobile phone or a smartphone. It can support up tp 7089 numeric characters or 4296 alphanumeric characters (the one-dimensional bar codes do not support more than 30 characters).
The storage capacity of this type of bar code is very important.
This type of bar code is used in several fields. It can store Web addresses, text, phone numbers, SMSs, ...

For the QR codes, you also have the ability to specify a level of error correction: if the code is damaged, up to 30% of the encoded words can be restored. The correction levels are as follows:
  • Level L: about 7% of the encoded words can be restored.
  • Level M: about 15% of the encoded words can be restored.
  • Level Q: about 25% of the encoded words can be restored.
  • Level H: about 30% of the encoded words can be restored.
16新版本

QR code

Bar code in 2 dimensions, made of black modules arranged in a square with a white background. This type of bar code is intended to be read by a reader of QR code, a mobile phone or a smartphone. It can support up tp 7089 numeric characters or 4296 alphanumeric characters (the one-dimensional bar codes do not support more than 30 characters).
The storage capacity of this type of bar code is very important.
This type of bar code is used in several fields. It can store Web addresses, text, phone numbers, SMSs, ...

For the QR codes, you also have the ability to specify a level of error correction: if the code is damaged, up to 30% of the encoded words can be restored. The correction levels are as follows:
  • Level L: about 7% of the encoded words can be restored.
  • Level M: about 15% of the encoded words can be restored.
  • Level Q: about 25% of the encoded words can be restored.
  • Level H: about 30% of the encoded words can be restored.

QR code

Bar code in 2 dimensions, made of black modules arranged in a square with a white background. This type of bar code is intended to be read by a reader of QR code, a mobile phone or a smartphone. It can support up tp 7089 numeric characters or 4296 alphanumeric characters (the one-dimensional bar codes do not support more than 30 characters).
The storage capacity of this type of bar code is very important.
This type of bar code is used in several fields. It can store Web addresses, text, phone numbers, SMSs, ...

For the QR codes, you also have the ability to specify a level of error correction: if the code is damaged, up to 30% of the encoded words can be restored. The correction levels are as follows:
  • Level L: about 7% of the encoded words can be restored.
  • Level M: about 15% of the encoded words can be restored.
  • Level Q: about 25% of the encoded words can be restored.
  • Level H: about 30% of the encoded words can be restored.