How to centre media on Zebra QLN220 printers - printing

The media Im printing on is 40mm and the Zebra QLN220 is set to 48mm which means some of the text is cut off how do i adjust this?
Thanks

If you are printing using ZPL commands the code to add would be:
^xa^PW320^xz
The printhead is 8 dots per millimeter. The PW sets the print width in dots. 8*40 = 320
If you are using a driver, CPCL, or line mode you need to look up how to change the print width for those methods.

Related

printer zebra calibration Issue

I alternately use 2 different label type and size, I have a zd421 Zebra Printer and when changing the labels it execute the media calibration automaticly to the rigth size of label, but it prints 3-5 blank label each time we change paper, is there any possibility to disable printing extra blank label during calibration? is it possible to disable the media calibration? I apreciate you could help me.
If your printer has a display, you can change this in the tools ("power up action" and "head close action") menu otherwise you can use the ^MF ZPL command.
Have a look here to see how you can set the automatic action when you close the printer lid and when you power on the printer and here you can see how to send the commands to the printer.
But in few words, if you want to disable the calibration at all, you've to send the following commands
^XA
^MFN,N
~JUS
^XZ

Zebra Label zpl not showing completely in physical but yes virtual print

Hello I am trying to print a zpl label, it works virtually fine for me but they have sent me physical tests of the label from the printer and it does not print 3 letters that are to the right. Attached image.
any suggestions?
Code Label ZPL:
"^XA^DFR:FOR_ALV.ZPL^FS
^PRC
^LH0,0^FS
^LL504
^MD8
^MMT
^MNY
^LH0,0^FS
^FO48,8^A0N,56,49^CI13^FR^FN17^FS
^FO160,8^A0N,56,49^CI13^FR^FN1^FS
^FO480,8^A0N,75,49^CI13^FR^FN16^FS
^FO48,63^A0N,56,49^CI13^FR^FN10^FS
^FO350,63^A0N,56,49^CI13^FR^FN15^FS
^FO550,83^A0N,32,41^CI13^FR^FN8^FS
^FO48,130^A0N,24,36^CI13^FR^FN2^FS
^FO48,155^A0N,24,36^CI13^FR^FN3^FS
^FO48,180^A0N,24,36^CI13^FR^FN4^FS
^FO48,205^A0N,24,36^CI13^FR^FN5^FS
^FO48,230^A0N,32,36^CI13^FR^FN6^FS
^FO48,260^A0N,32,25^CI13^FR^FN9^FS
^FO178,260^A0N,32,25^CI13^FR^FN7^FS
^FO290,260^A0N,24,36^CI13^FR^FN12^FS
^FO400,260^A0N,32,41^CI13^FR^FN14^FS
^FO500,260^A0N,32,41^CI13^FR^FN13^FS
^FO030,305^A0N,29,36^CI13^FR^FDBUSINESSS.A. C.V.^FS
^FO030,335^A0N,29,36^CI13^FR^FDNAME OTHER^FS
^FO030,360^A0N,33,36^CI13^FR^FDwww.webpage.com.^FS
^FO030,390^A0N,33,36^CI13^FR^FN18^FS
^FO585,205^A0N,70,130^CI13^FR^FN19^FS
^FO595,305^A0N,70,130^CI13^FR^FN20^FS
^FO585,405^A0N,70,130^CI13^FR^FN21^FS
^BY5,3.0^FO030,424^BCN,72,N,Y,N^FR^FN11^FS
^XZ
^XA^XFR:FOR_ALV.ZPL^FS
^FN1^FDCOUNTRY^FS
^FN2^FDDESTINYL^FS
^FN3^FDSTREETII #Ext 17804^FS
^FN4^FDVISTAS DEL MAR ^FS
^FN5^FDSTATE, COUNTRY^FS
^FN6^FD1 CARRO 2^FS
^FN7^FD09:59^FS
^FN8^FD^FS
^FN9^FD04/01/21^FS
^FN10^FDY19561^FS
^FN11^FD>:Y19561^FS
^FN12^FD108.3^FS
^FN13^FDDE 1^FS
^FN14^SN001,1,N^FS
^FN15^FD0^FS
0^FS
^FN17^FDCON^FS
^FN18^FDTEL ^FS
^FN19^FDC^FS
^FN20^FDO^FS
^FN21^FDN^FS
^PQ1,0,0,N
^XZ
"
attached image of the label virtula, the size is 4 x 2 .6:
attached image of the label physical the size is 4x2.6: Label not show "C O N"
This usually occurs when the print width is configured to be less than the physical label width. Use the ^PW command to set the width. For a 4" label at 203dpi, for example, add ^PW812 to the top of your label format, right after the ^PRC.
NOTE: If you are using the full with of the label and you don't know the physical size of the label or the printer dpi, you could set the PRINT WITH to something insanely large, it will automatically be truncated to the correct value. From the docs:
If the value exceeds the width of the label, the width is set to the
label’s maximum size

ZPL language - cannot rotate label

Hi I'm working with a Zebra printer GC420t.
I'm trying to print the same label two times:
the first time with vertical orientation.
the second time with horizontal orientation.
If I try to draw that labels on the "Labelary Online Zpl" (http://labelary.com/viewer.html) it seems to work well.
If I try to print the labels the vertical it print all the fields on the same line.
Some advices?
**Vertical**
^XA
^CFA,40
^FO50,100^FDTest1^FS
^FO50,250^FD100.00^FS
^FO50,400^BY2,0,80^BC^FD101.00^FS
^FO50,550^FDTest2^FS"
^XZ
**Horizontal**
^XA
^FWB
^CFA,40
^FO100,50^FDTest1^FS
^FO250,50^FD100.00^FS
^FO400,50^BY2,0,80^BC^FD101.00^FS
^FO550,50^FDTest2^FS"
^XZ
Maybe a sketchy solution, but try using the ^A command:
^XA
^CF,40
^FO100,50^AAB^FDTest1^FS
^FO250,50^AAB^FD100.00^FS
^FO400,50^AAB^BY2,0,80^BC^FD101.00^FS
^FO550,50^AAB^FDTest2^FS"
^XZ
Why it is sketchy? You have to set the font and the rotation for every ^FD.
*Edit, in my first answer I used font A in CF command and that is not neccessary.

set papersize Printing with Ghostscript.NET

I'm printing some pdf's using Ghostscript.NET
this is my config.
List<string> switches = new List<string>
{
"-empty",
"-dPrinted",
"-dFirstPage=1",
"-dLastPage=1",
"-dPrinted",
"-dBATCH",
"-dNOPAUSE",
"-dNOSAFER",
"-dNumCopies=1",
"-sDEVICE=mswinpr2",
#"-sFONTPATH=" + System.Environment.GetFolderPath(System.Environment.SpecialFolder.Fonts),
"-sOutputFile=%printer%" + printQueue.FullName,
"-f",
inputFile
};
It works pretty well but my paper size is a custom paper 6.5in x 8.5in, my problem is when I print silent to my ricoh printer, try to print in letter.
How can i do to set my paper size in my switches or force the printer to render it properly.
If i print manually must select the paper and bin manually and all print's perfect.
The mswinpr2 device uses Windows to do the printing, in particular the media size is set by the printer canvas.
So the answer is to set the default media selection of your printer to the required media size before you start printing.
You can set the paper size with "-sPAPERSIZE=a4" you can see Paper sizes known to Ghostscript.
or you can set it by height and width
"-dDEVICEWIDTHPOINTS=w"
"-dDEVICEHEIGHTPOINTS=h"
Where w be the desired paper width and h be the desired paper height in points (units of 1/72 of an inch).

Creating ZPL template for Zebra Printer ZP450ctp

This is the first time I've worked with ZPL code. I'm printing on a 200dpi ZP450ctp printer onto labels that are 2inx1in. The .zpl below is way to big but I thought I had it set right. Is anyone familiar with the .zpl language?
^XA~TA000~JSN^LT0^MNW^MTT^PON^PMN^LH0,0^JMA^PR2,2~SD15^JUS^LRN^CI0^XZ
^XA
^MMT
^PW1200
^LL0600
^LS0
^FT131,350^A0N,333,331^FH\^FDA12345^FS
^BY4,3,70^FT717,533^BCN,,Y,N
^FD>:A>51234>65^FS
^FT138,539^A0N,58,57^FH\^FDThis is a description^FS
^PQ1,0,1,Y^XZ
To start with your print width would then be 400 and label length would be 100. If you are using web based media you do not need to have these in your ZPL (remove the ^PW and ^LL).
Then you need to set the values right. Character height and with in your ^A0 command would make each character 1.5 inches.
^XA
^MMT
^FO10,10^A0N,80,80^FH\^FDA12345^FS
^BY4,3,50^FO10,130^BCN,,Y,N
^FD>:A>51234>65^FS
^FO10,95^A0N,30,30^FH\^FDThis is a description^FS
^XZ
Try the above it should get you closer to what you need. You want to adjust the ^FO commands to adjust the location of the objects, and adjust the pair of numbers after the ^AON, to adjust the font size.

Resources