I have the following ZPL code:
^XA^LH30,20^MD15^PW609
^FO0,20^AD^FD Pull Sample Post-Login^FS
^FO0,45^AD^FDStudy ID : ^FS
^FO0,70^AD^FDLIMS No : 3216665-TIME_FACT-STOR_COND^FS
^FO0,95^AD^FB590,2,,^FDMaterial Name : 2187- Abatacept (CTLA4g) for Injection 250mg/Vial^FS
^FO0,140^AD^FDBatch No : ^FS
^FO0,165^AD^FDTime Point : ^FS
^FO0,190^AD^FDStorage Conditions :^FS
^FO0,215^AD^FDRemoved By : ^FS
^FO0,240^AD^FDRemoval Date :
^FS^XZ
On a GX430T, the label width is 2x3 inch. It prints out field "Material Name:" fine by wrapping it to the 2nd line.
When try the same code in production, using ZM400 printer with a label width of (1x3 inch). It prints all the fields, except the Material Name field, you just see a blank line where the Material Name field should be.
I suspect that it's a issue with label width. How do I change the ZPL code that it takes into account the label width of the production ZM400 printer?
The combination of these three commands might mess things up.
^LH30,20
^PW609
^FB590,2,,
^PW609 is print width of the label.
^LH30,20 sets home position at 30
^FB590 would create a field block that exceeds the print width of the label (30+590=620, which is > 609)
So maybe when you tweak these a bit, it might print it correctly?
Related
I'm printing an adhesive label (6x5cm) with a printer model 3nStar RPT006.
In the adhesive I am printing a title, QR code and the QR code in text
something like this
My Title
▄
qr code
Using this class as reference, I'm doing something like this:
initialize(),
setJustification(Printer.JUSTIFY_CENTER),
'My Title',
feed(),
qr(qrText),
feed(),
qrText,
feed(2),
cut(Printer.CUT_FULL, 1),
My problem is: I don't know how to control the vertical size, or how to set the height of the paper. Between each label I have a gap of 3mm.
So my question is, how should I handle the vertical spacing/height?
Currently I very close to get a perfect label, but seems like the printed label is some millimeters shorter and each time I print a label, it miss a little bit more, so there is a time where I start to cut the adhesive part and not the gap
I'm not sure if it's possible in your environment, but there are three options.
Prepare blank image data with the required number of vertical dots and print it(graphics(EscposImage $image, $size)) instead of the line feed code.
Use setLineSpacing($height) to change the height of one line only for the required part and start a new line. Then return to the original size.
Make your own customization by adding the function to feed the paper in dot units to the library for printing.
ESC J
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
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.
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.
How can we set the space between lines in an rdlc textbox?
Scenario:
The application shall be printing a report to a pre-printed stationary sheet.
One string field of the report is usually having about 400 characters of data (description input by user), which shall be printed in multiple lines.
As a workaround to the problem of not able to set LineHeight property of textbox control in rdlc, I have written a custom code which will insert new line characters into the string (by adding Environment.NewLine) such that the string is splitted into multiple lines. However, I am not able to set the space between each line in the text box. I have tried setting both SpaceAfter and SpaceBefore property. No change :-(
I also tried using VbCrLf and combination of Chr(10) and Chr(13) instead of Environment.NewLine. Did not help... Can you help!!!
I am using VS2010 Premium Edition and Application Target of 4.0 framework.
I added new textboxes for each lines to my report and set position for them with necessary line spacing.
because Line spacing in textbox properties is not applied.
This is how I do it. (It works only between paragraphs, not within a single paragraph where the lines wrap.) Say the font is 12 pt, and I want a little space between paragraphs, but not full double-spacing. I put the extra line between paragraphs, and then I select that empty line and set the font to 6 pt. If I wanted 1.5 spacing, I'd set it to a larger font.