cancel
Showing results for 
Search instead for 
Did you mean: 

Printing label with ZPL code (Zebra printer language) in smartform

Former Member
0 Kudos

Hi experts,

I got a ZPL code in requirement from client for label generation. I got to know that if we paste that ZPL code directly in text element in smart form, it will give the desire output. As we dont have Zebra printer so I couldnt confirm that. Can you experts confirm me that directly pasted ZPL code will give the desired outpout or not .

ZPL code :

XALL1200

^PW1200

FT128,160XG000.GRF,1,1^FS

FT27,168AAN,27,15FDMaterialno:FS FT263,168AAN,27,15FD&mara-matnr&FS

XAID000.GRFFSXZ

The output should be :

Material no : y-351

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

thank u

Former Member
0 Kudos

Hi,

Yes you need to paste the code in Text element...

Please find the code which i pasted in the Test element in one of our developments...

/* Property of

/* Test.

/* Cost Center: &WA_ANLZ-KOSTL(C)& Plant:&WA_ANLZ-WERKS(C)&

/* <BC>&WA_ANLA-INVNR&</>

/* &WA_ANLA-INVNR&

* ^XA

/ ^PRC

/ ^LH1,1

/ ^MD0

/ ^FS

/ FO35,30A0N,28,18CI13FD Property of TestPvt.Ltd.^FS

/ FO45,60A0N,25,15CI13FDCost Center: &WA_ANLZ-KOSTL(C)&^FS

/ FO245,60A0N,25,15CI13FDPlant: &WA_ANLZ-WERKS(C)&^FS

/ BY1,1.0FO25,85B3N,N,25,Y,NFRFD&WA_ANLA-INVNR&FS

/* FO140,114A0N,28,18CI13FD &WA_ANLA-INVNR&^FS

/ ^PQ1,0,0,N

/ ^XZ

/ ^FX

Former Member
0 Kudos

thanks avinash . one more thing my code is starting from ^FT instead of ^FO . Will it create the difference .

Former Member
0 Kudos

Hi,

I'm not sure about that...but i think it will not crerate any difference.

There are some tool avaliable on the internet which can generate the zebra code as per you form design.

Former Member
0 Kudos

Hi Avinash.

Can u tell me r u using smartforms?

I have created a label with text fields on it.

But I need to rotate the entire label (including all text fields) by 90 degree clockwise just before printing.

I have put all the text elements into separate windows and all secondary windows into main window.

I am passing S_LZPL_SETUP - '^FWR' to a comand node in main window.

Fortunately the label is rotating and text fields too. But the text fields are not formatted properly. Most of them are overlapping.

Any help man???

Thanks and regards.

Vipin.

Former Member
0 Kudos

hi vipin,

^FWR but it not rotating the text ahead

do u have any idea

Thanks

sojan