Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

label printing

Former Member
0 Kudos
99

I am trying to print a label using smartform on zebra printer, can anyone tell me how to rotate the

output?

1 ACCEPTED SOLUTION

Former Member
0 Kudos
49

There is a command in the ZPL-II printer control language that rotates each individual field by 90 degrees (clockwise). If you insert this command into the output data stream using the mechanism of command nodes as described, you will achieve a rotation of individual fields at printout ("field" refers to a single OTF string command). However, you must adjust the position of the fields (or windows) in the form to obtain a "landscape" printout, as Smart Forms and the printer driver are not aware of the rotation. Define "portrait" orientation, therefore, for Smart Forms Add a command node for the rotation (add it in the MAIN window, for example). Ad the following attribute to this command node under "Spool control", "Free attributes":

Attribute name: Attribute value:

S_LZPL_SETUP '^FWR'

1 REPLY 1

Former Member
0 Kudos
50

There is a command in the ZPL-II printer control language that rotates each individual field by 90 degrees (clockwise). If you insert this command into the output data stream using the mechanism of command nodes as described, you will achieve a rotation of individual fields at printout ("field" refers to a single OTF string command). However, you must adjust the position of the fields (or windows) in the form to obtain a "landscape" printout, as Smart Forms and the printer driver are not aware of the rotation. Define "portrait" orientation, therefore, for Smart Forms Add a command node for the rotation (add it in the MAIN window, for example). Ad the following attribute to this command node under "Spool control", "Free attributes":

Attribute name: Attribute value:

S_LZPL_SETUP '^FWR'