RBarcode for Delphi

Copyright J4L (http://www.java4less.com) 2002.

Introduction

RBarcode is a Delphi component that will allow you to create 1 dimensional barcodes for your windows applications. The component has been developed using Delphi 4 and Delphi 7 so it should run in any Delphi version between between 4 and 7 by recompiling it.

Barcodes types

The following is a short description of some of the supported barcode types: At HP site you will find more information abour barcode.
 
 

Installation

 

There are 2 installation possibilities ActiveX version and Delphi source code.

In order to install the ActiveX version of the control:

  1. select main menu -> component -> import activeX control
  2. click on "Add...", select RBarcodeDX.ocx file
  3. You will now see: TBarcode1DX, TDatamatriX, TDPF417X and TMaxicodeX in the "Classes" window.
  4. click on "Install", install window will come up.
  5. click "ok" to install
  6. the controls will appear in the "ActiveX" tab of the components palette.

In order to install from the Delphi source code (registered users only):

  1. select main menu -> component -> install component
  2. click on "browse" and select Barcode1D.pas
  3. click "ok"
  4. the control will appear in the "Barcodes" tab of the components palette.

 

 

Examples

In order to run the sample application you must execute barcode1DDemo.exe or barcode1D2DDemo.exe.

 

 

Properties and methods of the component

The TBarcode1D component is a subclass of TGraphicControl and can therefore be placed on any form or container. This is the esiest way to use it , however you can also create an instance of the component by program and then paint the barcode on any canvas object using the paintBarcode() method.

The TBarcode1D component has following properties and methods:

Methods

 

Properties

How to use the checkCharacter property:

If you are suppling the code with the check digit already calculated, you must set checkCharacter to false (this is the default). If you want the software to calculate the checksum for you, you must set barcheckCharacter to true.

For EAN and UPC have fixed length and therefore you only have the following possibilities: