cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform with ZPL language - no execute ZPL code

Former Member
0 Kudos

Hi,

I want create one label in smartform and print it with ZEBRA printers.

I created one smartform with one Page and one window(MAIN) and one text, in this text, I put zpl commands in General attributes:

^XA

FO0,367GB831,0,2^FS

FO494,368GB0,1050,2^FS

FT15,300A0N,25,23FDPDC SHIPMENT NOFS

FT24,340A0N,34,47^FD;SEQ

FT224,48A0N,25,29FDCUSTOMERFS

^PQ1,1,1,Y

^XZ

and generate my smartform.

When I call this by program, zebra prints one label but with ZPL code, not execute the ZPL code.

All ideas for solve my problem are WELCOME.

Ana

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Try using a programs line node. I do not know anything about Zebra printers but I do know that anything in a text node will be printed as it appears (there is no processing in a text node). If the programs line node doesn't work then you can always call an external program. I hope you find the answer soon.

Davis

Answers (1)

Answers (1)

Former Member
0 Kudos

HI

i used zebra coding in scripts but not in smartforms but i think this knowledge may also help you.

generally in zebra coding all the code we write in only one window i.e main

in spool like normal forms you can't see the ouput of form in zebra coding

but you can see the code( what you written ) only

you can check the ouput through output from zebra printer only.

if you are using barone software which generates the tiff file just add that code in

the text of your window but don't create multiple texts.

Regards,

Phani.

Former Member
0 Kudos

Hi

Thank you Davis and Phani by yours ideas.

I still with this problem, in my smartform I have just one window(main) and just one text with the above code and after when I run my program didn't execute the ZPL code, print the code in label.

I already tested with zebra software the same code and the label is OK.

But I'd like to have the same label with smartforms, print directely from SAP.

All ideas and examples are welcome.

Best regards,

Ana

Former Member
0 Kudos

Hi,

My problem is solved.

SPAD transaction - device type, I need to defined this.

Thank you all.

Ana

markbrun1965
Discoverer
0 Kudos

Hi Ana

I've the same problem.

How have you defined the printer in the SAP-System(spad) ?

Device Type :

Host Spool Access Method :

Best regards

Markus

Former Member
0 Kudos

Hi Marcus,

Device type ZLB_ZEB : Zebra label printer IBM850

Host Spool Access Method :

Host spool access method F: Printing on frontend comp

Host printer __Default

And in your PC, put this printer with default printer.

Br,

Ana

markbrun1965
Discoverer
0 Kudos

Hi Ana

thank you for your answer.

Is the zebra printer on a printserver or local on the client installed ?

Best regards

Markus