CPCL commands on Brother - zebra-printers

Currently using a Zebra ZQ520 printer using CPCL commands. Due to the lack of availablity of this printer, I'm trying the same Windows app (wpf) with a Brother RJ-4230B printer.
However, the printer is stuck at "Receiving" most of the time. When it does work, text is small and it prints the CPCL params (x, y). I've put the printer in CPCL emulation mode.
I don't want to make a Template for the Brother printer because the number of datarows varies.
Anybody has a clue how to make it works ?

Related

Electron app sends document to printer, but doesn't print. Debugging printer?

We have an application running within Electron which is successfully sending a byte array to the Windows print buffer and printing on all of our printers, except for one: "HP LaserJet Pro M402n". We found an option to print a history and the HP printer is tallying the phantom jobs as printed, but nothing actually was. We're at a bit of a loss on how to debug this, as it seems like an internal printer issue. Does anyone have advice on how to debug something like this? I'm thinking like Fiddler, virtual printer w/ debugger, etc. Any advice is appreciated.
Thanks

ESC/POS Command Answer

Good morning,
I am developing a kiosk application. In that application i need to send some commands to a printer with ESC/POS protocol.
I have some commands that give me information about printer (printer status, end of paper status). For sending command I use this function, but I need also to read the printer reply.
How can I do it? (The printer is connected in USB mode).
I'm developing on delphi xe2
Thanks
The example is assuming that your string type is simple such as shortstring. Try declaring s as shortstring. It can not work with widestring or unicode.
Did you check if the USB connection makes a new serial port?
If a new serial port displayed in device manager, I can help you to send the ESC command with a Delphi Comport component.
But if there is no serial port shown up, I have no idea about how to control the thermal printer.

data sent to the printer when i click print

I'm doing a project to build printer using a microcontroller via USB. The MCU's USB is configured as printer class when I plug the MCU into the PC so that it is identified as a printer. I've installed generic/text only driver available with windows and hence i can see my printer in "devices and printers" listed under printer category.
My question here is if I want to print whatever is sent to the printer, I need to know the data being sent from PC. For example, if I print a pdf, I want to know what data is sent i mean the format like HEX values or anything like that. Once I know what is coming into the controller I can print.
Any input here is welcome.
Thanks in advance
Well, since your printer setting is a simple generic/text only, the data sent will be the text content of the PDF. No markup, not even bold text or italics. Any pictures in the PDF will not be sent at all.
If you wan more than that, you can write a driver for your printer. As the driver writer, you determine what's sent to the printer.

Zebra MZ220 (CPCL) tahoma font

I'm porting an app to android from windows mobile. This app has printing support.
In Windows mobile I used PrinterCe framework, but in the android app I have written a framework to create CPCL labels.
Everything works ok except for the font. In the windows mobile app I can set the font doing:
((PrinterCE)m_Printer).FontName = "Tahoma";
but as CPCL manual says I can choose between 7 fonts but tahoma is not in the list.
What method PrinterCE uses to allow me printing using Tahoma??
I think the framework takes care of upload the font to the printer.. but how do I use that font once uploaded??
Update:
I'm using the printer in Line Printing Mode.
I've never used PrinterCE, but I assume it writes text, images, barcodes, etc onto a canvas and then at the end of the document, sends it down to the printer as an image, which is why it would let you use any font available on the CE device. If you want to use a non-native font on a CPCL printer, you have to first download it to the printer. (See this answer here on how to make pre-scaled fonts). Then you would have to use that font in your format.

printing from snow leopard to zebra lp 2844 from html page

i am attempting to print labels from our custom CMS for products using EPL2 label printer drivers but having no luck.
the printer spits out about 12 labels (4x1") but no text is visible.
i set up the printer manually and using the CUPS admin interface and get the same results each time.
zebra doesn't make a native driver, but i am finding on the web that this driver should work.
any advice would be much appreciated.
thanks.
What kind of data are you sending to the device? If you're just doing a File->Print of the web page it should work with the OS drivers, no need to go into the CUPS interface. If you're writing to the spool folder you should be sending raw EPL code - look for the EPL Programming Guide # Zebra.com
Make sure you setup the device correctly as well.
http://www.nrgsoft.com/blog/?p=11
what ended up working was doing a factory reset and using #page along with paper size settings to print in the correct dimensions.
the only printer i could get to actually work the way it was supposed to was Chrome.

Resources