How to print zpl barcode vertically on a vertical label

I am using a zebraGk420d printer. I am using vertical barcode label. how to print text and barcode vertically. my zpl code like this

$barcode_ZPL_code="^XA
^FO 150,50^AD,40^FH^FDSALABED_20CARGO^FS 
^FO80,100^AD^BY2
^BCN,100,Y,N,N
^MD10
^FDLTX81316-1(1)-APP^FS
^FO1,250^A0N,20,20^FH^FDCOURIER_20TYPE_3ACHEDDI_20JAGAN_20AIPORT_20GUYANA_20OWN_20CLEARING_20TEST^FS
^FO1,280^A0N,20,20^FH^FDDESTINATION_3ASALABED_202CARGO_20PLOT_20710_20BLOCK_2012_20KISENYI_20ROAD_2E_2E_2E^FS
^FO1,310^A0N,20,20^FH^FDHEAD_20OFFICE_3AUNIT_204A_20ORBITAL_20BUSINESS_20PARK_205_20ARGON_20ROAD^FS
^FO106,340^A0N,20,20^FH^FDEDMONTON_20LONDON_20N18_203BW_20EMAIL_3AINFO_40SALABED_2ECO_2EUK^FS
^FO106,370^A0N,20,20^FH^FDTEL_3A_2B44_28020_29_208884_204060_20WEBSITE_3AWWW_2ESALABED_2ECO_2EUK^FS
^XZ";

      

This code prints in horizontal format. Thanks in advance.

+3


source to share


1 answer


You can specify the orientation for each text / barcode field separately, for example, if some fields should print horizontally and others at 90 degrees, or use the default orientation for all fields, and then specify the orientation only for exceptions to this rule.

The individual orientation of the field in the label for text and barcodes is indicated in the fourth letter of the commands ^AON

and ^BCN

. To change the orientation of any of these fields, use the appropriate letter from the following list:

  • N = normal
  • R = rotated 90 degrees (clockwise)
  • i = inverted 180 degrees
  • B = reading from bottom to top, 270 degrees

For example, to print a barcode at 90 degrees, replace ^BCN,....

with, ^BCR,...

or print a specific text string at 90 degrees, replace ^AON,...

with ^AOR,...

.



To change the default orientation for all fields on a label, you can use ^FWx

before calling any text / barcode fields where x

represents the default orientation you want (from the above list of orientation options) and only include the orientation letter in separate commands text / barcode (i.e. change ^BCN,...

to ^BC,...

and ^AON,...

to ^AO,...

) for any exceptions for this default orientation.

For example, to print all margins 90 degrees except for the last text line, you can use the following (note that the added ^ FWR command and orientation letter have been removed from all text / barcode fields except the last text command):

$barcode_ZPL_code="^XA
^FWR
^FO 150,50^AD,40^FH^FDSALABED_20CARGO^FS 
^FO80,100^AD^BY2
^BC,100,Y,N,N
^MD10
^FDLTX81316-1(1)-APP^FS
^FO1,250^A0,20,20^FH^FDCOURIER_20TYPE_3ACHEDDI_20JAGAN_20AIPORT_20GUYANA_20OWN_20CLEARING_20TEST^FS
^FO1,280^A0,20,20^FH^FDDESTINATION_3ASALABED_202CARGO_20PLOT_20710_20BLOCK_2012_20KISENYI_20ROAD_2E_2E_2E^FS
^FO1,310^A0,20,20^FH^FDHEAD_20OFFICE_3AUNIT_204A_20ORBITAL_20BUSINESS_20PARK_205_20ARGON_20ROAD^FS
^FO106,340^A0,20,20^FH^FDEDMONTON_20LONDON_20N18_203BW_20EMAIL_3AINFO_40SALABED_2ECO_2EUK^FS
^FO106,370^A0N,20,20^FH^FDTEL_3A_2B44_28020_29_208884_204060_20WEBSITE_3AWWW_2ESALABED_2ECO_2EUK^FS
^XZ";

      

Also, you will need to adjust the x / y coordinates after changing the field orientation.

+6


source







All Articles