ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Bar Code control
  • Bar Code control overview
  • Control found in a window, page or report
  • Creating a Bar Code control
  • Remark: QR code size
  • Bar Code control characteristics
  • Parts of a Bar Code control
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Bar Code control overview

Control found in a window, page or report

The Bar Code control displays bar codes in your windows, pages or reports.
The value of a Bar Code control corresponds to an alphanumeric string.
Caution: To directly read the value of a bar code on the screen with a special device, make sure that you use the appropriate device.
Creating a Bar Code control
To create a Bar Code control:
  1. On the "Creation" tab:
    • in the window or page editor: in the "Graphic controls" group, click "Bar code".
    • in the report editor: in the "Data" group, click "Bar code".
  2. Click where you want to create the control in the window, page or report. The control appears in the editor.
To view the characteristics of the control, select "Description" in the context menu. You can choose the type of bar code in the "General" tab. This type cannot be changed programmatically.
Tip: you can also create a "predefined" Bar code control by expanding the "Bar code" option. A preview of the available bar codes appears. This preview uses the project skin template. Simply click the control you want to create in the editor.

Remark: QR code size

A QR code is a dot matrix whose size varies according to the data contained and the correction rate.
The QR code standard requires all dots to be the same size.
To remain readable, the size of the QR code is not always proportional to the size of the control. From one QR Code to another, a margin within the control may appear to make sure that the code complies with the standard and that it can be read.
Bar Code control characteristics

Parts of a Bar Code control

A Bar Code control includes:
  • the caption of the bar code.
  • the image of the bar code.
  • the value of the bar code (that corresponds to an alphanumeric string).
Elements of a bar code
The window or page editor allows you to select:
  • the type of bar code to display (with its characteristics if necessary).
    • Bar code with check digit: The last character of the bar code is a check digit.
    • Extended bar code: The bar code value can contain all 128 ASCII characters.
    • Proportional size: The height of the bar code is proportional to its width (for UPC and EAN types).
    • Value of bar code visible: Shows or hides the value below the bar code.
      To learn more about the different types of bar codes supported by WINDEV, WINDEV Mobile or WEBDEV, see The different types of bar codes.
  • the orientation and position of the bar code ("Details" tab).
The report editor is used to specify:
  • the initial value of the bar code. For example, you can type the Internet address linked to a QR bar code.
  • the type of bar code to display (with its specific features if necessary).
    • With check digit: The last character of the bar code is a check digit.
    • Extended code: The bar code value can contain all 128 ASCII characters.
    • Value of bar code visible: Shows or hides the value below the bar code.
    • Proportional size: The height of the bar code is proportional to its width (for UPC and EAN types).
    • Ignore formatting characters: Ignores the brackets in a 128 or EAN-128 bar code.
    • The value contains control characters: Bar code containing control characters (valid for the CODE 128, DATAMATRIX, EAN 128 and PDF 417 bar codes only). By default, control characters are enclosed between "<" and ">". To avoid interpreting them as control characters, they must be doubled.
    • Sets of characters: Bar code that uses one or more sets of characters to compress the bar code. This set of characters must be defined in the bar code value.
    • Check digits: Bar code containing check digits (valid for the CODE 128, DATAMATRIX, EAN 128 and PDF 417 bar codes).
      To learn more about the different types of bar codes supported in WINDEV or WEBDEV, see The different types of bar codes.
  • the orientation and position of the bar code.
  • the border of the bar code ("Style" tab).
Related Examples:
The Bar Code control Unit examples (WINDEV): The Bar Code control
[ + ] Using a Bar Code control
WD Reports Training (WINDEV): WD Reports
[ + ] This example presents the different methods for creating a report:

- prints based on different data sources (queries, variables, ...)
- prints based on controls (Table, Spreadsheet, PVT, ...)
- printing composite reports
- specific prints (portrait/landscape, report with watermark, report with bar code, ...)
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/12/2023

Send a report | Local help