CorelDraw & VBA
Summary & Introduction
Guide to CorelDraw VBA
Creating Variable Data
Variable Data From Access
Variable Data From Excel
Variable Data Without a Data File
CorelDraw BarCode Wizard
EAN13 BarCodes Without The Wizard
Code 39 BarCodes Without The Wizard
ITF-14 BarCodes Without The Wizard
Code 128 BarCodes Without The Wizard
QR BarCodes
Variable Pictures
Sorting for Guillotining
Repositioning Data
Pantone Colors
Saving VBA Code to a Previous Version of CorelDraw
Trim Marks
PhotoPaint
Miscellaneous VBA
Help
 
ITF-14 BarCodes Without Corel's BarCode Wizard


This barcode only encodes numbers not letters. I will describe how the barcode works as it is fairly simple.

There are 13 digits and one check digit. The numbers are handled as pairs.
The first, third, fifth, seventh, ninth, eleventh & thirteenth digits are always represented as black bars whilst second, fourth, sixth, eighth, tenth, twelfth & fourteenth digits are white bars.
On the left end there is a clear (white) area before the bars known as a Quiet Zone.
The first two black bars are always thin bars with a thin white bar between and another thin white bar following to allow a barcode reader to recognize that a barcode is upside-down.
Each digit is represented by 5 bars.
The next 5 black bars represent the 1st digit.
The 2nd digits is represented by the 5 white bars between. The remaining digits continue in this inter-woven pattern.
The barcode finishes with a thick black line followed by a thin black line with a thin white line between.
Again a clear area is required to the right of the barcode.
There is a thick black rectangle, called a Bearer, around the barcode and the Quiet Zones to aid in printing and scanning.
It is not essential but desirable.
The human readable text under the barcode is not essential and provided it is outside Bearer can be any any size, font & location.

If you use CorelDraw's Wizard you must use SendKeys to automate the barcode generation. This is a slow and unreliable way to automatically create bar codes..

There is a method at http://grandzebu.net. The barcode creation is fast and reliable but you cannot set the size, such as 65% of the standard size and get the correct sized barcode.
So I wrote a barcode generator using CorelDraw.

Download this bas file by right buttoning and selecting "Save Target As".
If you left button it it will only open and you can read the code but it is more difficult to install.

In CorelDraw's VBA IDE import the bas file from where you download the bas file. This will create a module called ITF14.
Running the procedure START will create a barcode on your CorelDraw document.

In the module there is a fixed barcode number but you can easily substitute the value with a variable whose value is based on a datasource.
You then repeatedly run START substituting the various barcode values.
It may be necessary to automatically create new pages for each barcode or alter the position of each barcode so that they do not over-lap.





2015_08_06