Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bar code Printing
Message
De
30/09/2005 15:32:32
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01053083
Message ID:
01055039
Vues:
34
Hi Gerard,

PMFJI, Ken has given you some great advice.

I've done butterfly, barbell, jewelry labels on Zebra printers and wanted to share the code with you:

SET CONSOLE OFF
SET PRINTER TO rpt6.txt ADDITIVE
SET PRINT ON
? "N"
? "R"+LTRIM(STR(llblmargin,2,0))+",0"
? 'D15'
? 'A0,0,0,2,1,1,N,"'+mldescr+'"'
? 'B280,0,0,1C,2,4,40,N,"'+TRIM(mbpartno)+'"'
? 'A0,20,0,2,1,1,N,"'+RIGHT(SPACE(10)+mdollar+LTRIM(STR(mbprice,9,2)),10)+'"'
? 'A300,45,0,2,1,1,N,"'+TRIM(mbpartno)+'"'
? 'P'+LTRIM(STR(mcopy,9,0))
?
SET PRINT OFF
SET PRINTER TO
SET CONSOLE ON

This creates a text file that can be sent to a Zebra printer using EPL2 (Eltron Programming Language 2/Page Mode) with a margin of llblmargin, density of 15, description of mldescr, code 128 mode c barcode of mbpartno, a currency symbol of mdollar, a price of mbprice, a human-readable barcode of mbpartno and mcopy number of copies.

This will print a jewelry label with barcode on left side and price and description on the right side.

Since there is very little room to print a barcode and you need to print it big enough that a scanner can scan it, I used Code 128C barcode and limited the barcode to a 6-digit string of numbers.

Another tip if you want to use EPL2 programming: If your Zebra printer comes with BarTender barcode printing software, you can design your label in BarTender and then print it to a text file. The text file will consist of the EPL commands that you can then integrate into your own program.

HTH,
Mark
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform