70
Page 68 of 88
TBarCode/X User Documentation
B.2.3
Why is there no barcode when I‟m testing the TBarCode/X with LPRng?
The print data has to include a barcode control sequence
–
for example:
$_tbcs -fPCL -b20 –m0.254 -h10.2 -d0123456789$_tbce
The filter must be registered in the printcap file (see Section 8
“
TBarCode/X as Spool Filter
”).
Sometimes lp uses “raw” mode (no filtering) use lpr instead.
B.2.4 How to replace printer specific control sequences with TBarCode control
sequences?
All device specific control sequences (for example as used by BarSIMM
®
) need to be replaced with
TBarCode control sequences. Here is an example for the symbology
“
2of5 Interleaved
”:
TBarCode/X Control Sequence
Prefix:
$_tbcs -fPCL -b3 –m0.254 -h13 -tHIDE –-origin=BOTTOM -d
Suffix:
$_tbce
Please note: If you want to edit PCL print data directly (e.g. within a spool file during tests), please
consider that a standard text editor could corrupt the print data during saving (umlauts, character
set differences and CR/LF conversion). Use a hex editor for PCL editing
–
for example: KHexEdit.
If you omit the parameters
–m
or
–h
, TBarCode/X will use default values. With the parameter
--defaultset=1
TBarCode/X uses default values which are common for most barcode
applications. You can specify this parameter in the TBarCode/X configuration file
tbarcode.conf
.
If you don't know, which barcode parameters to use, please contact support@tec-it.com
.
B.2.5 How can I filter Easybar control sequences?
Easybar control sequences can be filtered directly with TBarCode Command. Use the following
syntax:
tbarcode –filter --easybar=on <input.pcl >output.pcl
When TBarCode/X is installed in your print spool system, you can enable Easybar support
permanently by adding the line
easybar=on
to the TBarCode/X configuration file
tbarcode.conf
.
You should also consider using the option
--remove
. This option removes the Easybar control
sequence from the filter stream, which is the default behavior of most Easybar devices.
B.2.6 How can I print barcodes within a text file?
PCL printers can accept normal text files (ASCII files). Reports and lists are often printed as normal
ASCII files.
You can filter a text file with TBarCode/X and let it create PCL barcodes. The resulting document
will contain the ASCII print data together with PCL commands for drawing barcodes. This document
can be sent directly to the printer. But you need to ensure that this document is sent directly to the
printer without going through the Unix standard spool filters. The spool filter could convert the
barcode drawing commands back to normal text.
Read the next FAQ item for additional information.