Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bar code Printing
Message
 
To
17/10/2005 16:34:52
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01053083
Message ID:
01059845
Views:
14
Hi Mark
I manged to get the printer working ok.
The model I have apparently is in defult page mode, and when I Copied the file down to LPT1 , it worked fine.
Thanks for your help.

regards,
Gerard


>No, you shouldn't have to set the printer into Eltron mode. It does need to support EPL2 (Eltron Programming Language version 2) and be in what's called Page Mode. With power off, does a 'dump mode' printout occur when you turn power on while holding down the label advance button? This will indicate how the printer is setup.
>
>Sorry, but I don't support these printers in USB mode in my application. I need to and will in the future but for now it's just COM and LPT for me.
>
>Does the text that printed look something like the following?
>
>N
>R0
>D15
>A0,0,0,...
>.
>.
>.
>
>
>
>>Hi mark.
>>I've got a Zebra TLP 3842 printer and am doing a bit of testing.
>>I tried downloading your suggested text file (as I'm goint thru a USB port I printed directly as I'm not sure how to Copy to Lpt1 for a USB port )
>>Anyway, just the text appeared on the printer
>>I presume I heve to 'Set' the printer into Eltron mode to intrpret the characters...any idea of how this is done ?
>>
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform