cancel
Showing results for 
Search instead for 
Did you mean: 

Interactive Forms - Print orientation - ZPL

Former Member
0 Kudos

Hi,

i am going to create my first label on a zebra printer with adobe forms (LiveCycle-Designer 8.2). When i print the label with a portrait-format everything is fine.

In a special case the height of the label is about 2cm and the width is 10cm. So the masterpage automatically turns to landscape-format. The preview is ok but when i print on the zebra the label is rotated with 90 degrees.

I think the landscape-format changes the ZPL-code.

Has anybody experiences with this penomenon?

best regards

Frank Thomas

Accepted Solutions (1)

Accepted Solutions (1)

former_member191062
Active Contributor
0 Kudos

Hello,

this rotation happens on the zebra level not in the ADS generated content. If the papertype seems to be landscape than the printer usualy rotates the print by 90 degree.

Best regards,

Dezso

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

I had a similar problem.

I solved the problem after changing the orientation (Seite1.medium.orientation = "portrait")

and also changing the rotation of all text- and graphic- fields in the XML Source.

(example: <field access="protected" h="9mm" name="PA_MATNR" rotate="90" w="49.387mm" x="0.201mm" y="49.587mm">)

sebastian_hockmann2
Participant
0 Kudos

Thanks a lot. Problem solved. 🙂

0 Kudos

Hi,

you can turn the orientation back to portrait using FormCalc.

i.E. in event initialize:

PAGE1.medium.orientation = "portrait"

Worked for me...

Greetz

Markus

Former Member
0 Kudos

Hi Markus,

worked for me too!

thanks & best regards

Frank

sebastian_hockmann2
Participant
0 Kudos

Hi Markus,

in FormCalc there is no autocomplete for property medium. Where do i have set this command exactly ?

On Subform or on another element ?

Best regards,

Sebastian

0 Kudos

Hi Sebastian,

any element that processes initialize would work.

I put it in the initialize-event of a text field on my first master page.

Markus

sebastian_hockmann2
Participant
0 Kudos

Hello Markus,

ok, thanks a lot. I got it and it works fine for me 🙂

Maybe, you know how to adjust paper width on a zebra printer ?

We did use ZPL command ^PW in smartforms.

But i don't know how to use this in AdobeForms ?

When using DeviceType AZPL203 (zpl203.xdc) the output

is shifted to the left.

Sebastian

Former Member
0 Kudos

Hi Sebastian,

there is no need to adjust the paper width using ZPL.

You adjust it with the master-page in livecycle-designer.

It is only important that you change the orientation to "portrait" in Formcalc.

best regards

Frank

0 Kudos

We have this problem too, an other application sends ^pw to the Zebra, then the labelsize doesn't fit the Adobelabels anymore and the whole output is shifted.

Our workaround is a ZPL-File we "print" on those devices before we deliver the printer to the user, which sets up the needed labelsize (created with Zebra Setup Utilities). From that time the printer is used for nothing else than these Adobelabels, so it works for us.

It would be better to make SAP send the ^pw with every print job but we didn't find a way to implement this yet.

Markus

sebastian_hockmann2
Participant
0 Kudos

Hi Markus,

can you please send me your ZPL File ? Maybe it can be useful for us, too.

Thanks a lot.

Sebastian

0 Kudos

See code below, copy to editor and print it on your Zebra.

Look at Zebra Programming Guide for explanations of commands.

~SD15

~TA000

^XA

^PW320

^LL200

^PON

^PR2,2

^PMN

^MNY

^LS0

^MTD

^XZ

^XA^JUS^XZ

Former Member
0 Kudos

Hi,

we have another Output-Tool called Streamserve. With this tool there is no problem with rotating labels and we don`t have to change anything on the zebra-level.

...so does anyone know how to change this behaviour on the zebra-level? I tried to change the printer settings but there were no changes in the result.

best regards

Frank Thomas

Former Member
0 Kudos

Hi,

Have you found any solution for this problem? I have it as well...

Br Linus

Former Member
0 Kudos

Hi linus,

i did not solve the problem but printing landscape-labels with ZPL works.

When i am ready with designing the label i reduce the width to the height. After that i change the orientatation to portrait.

So the preview is not complete but the printed label looks good.

regards

Frank