Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bar code Printing
Message
From
03/10/2005 15:53:35
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01053083
Message ID:
01055617
Views:
26
>Hi Mark..thanks very much for sharing the code.
>As a matter of interest, which exact model of Zebra printer did you select.
>I have been on to the suppliers of Zebra printers and they range from €600 to c €5000 !!. Volume printing is'nt an issue
>
>Regards,
>Gerard
>
>
>
>>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


Zebra Printer model # TLP 2824
Previous
Reply
Map
View

Click here to load this message in the networking platform