on 01-15-2010 3:01 PM
Dear All,
I have written a code to take print from Zebra- ZM400 printer, For that I wrote code in SE71
/E MAINTEXT
/ ^XA
/ ^MD10
/ ^MNY
/ ^XZ
/ ^XA
/ LH0,0FS
/: FO140,66A0N,27,23CI13FRFDBKE-AA201275FS
/: BY2,3.0FO87,05BAN,59,N,Y,YFRFDBKE-AA201275FS
/: FO593,66A0N,27,23CI13FRFDBKE-AA201276FS
/ FD&SERNO1&FS
/: BY2,3.0FO508,05BAN,58,N,Y,YFRFDBKE-AA201276FS
/ FO1,1FD ^FS
/ LH0,0FS
/ ^XZ
_______________________________________________________________
BKE-AA201275 is my hard code value. After I execute my Zprog 3 pages are coming blank.
Requirement: I want hardcode value to be print in ZEBRA format.
Please help me to resolve this issue.
Waiting for positive reply.
Regards,
> /: FO140,66A0N,27,23CI13FRFDBKE-AA201275FS
> /: BY2,3.0FO87,05BAN,59,N,Y,YFRFDBKE-AA201275FS
> /: FO593,66A0N,27,23CI13FRFDBKE-AA201276FS
> / FD&SERNO1&FS
> /: BY2,3.0FO508,05BAN,58,N,Y,YFRFDBKE-AA201276FS
Please replace /: (means SAP command, it won't be output to printer) by /
You could have find that problem by displaying the spool content in raw mode: you would have seen that everything is sent to the printer except these lines
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thansk for reply,
We tried the following code but didn't get the output could you please tell us what is the problem in following code
MAINTEXT
^XA
^MD10
^MNY
^XZ
^XA
LH0,0FS
FO140,66A0N,27,23CI13FRFD&SERNO1(12)&FS
FO593,66A0N,27,23CI13FRFD&SERNO2(12)&FS
FO593,66A0N,27,23CI13FRFD&SERNO2(12)&FS
BY2,3.0FO87,05BAN,59,N,Y,YFRFD&SERNO1(12)&FS
BY2,3.0FO508,05BAN,58,N,Y,YFRFD&SERNO2(12)&FS
BY2,3.0FO508,05BAN,58,N,Y,YFRFD&SERNO2(12)&FS
BY2,3.0FO87,05BAN,59,N,Y,YFRFD&SERNO1(12)&FS
FO593,66A0N,27,23CI13FRFDBKE-AA201276FS
BY2,3.0FO508,05BAN,58,N,Y,YFRFDBKE-AA201276FS
FO1,1FD ^FS FO5,1FD ^FS
LH0,0FS
^XZ
Mehul,
I don't know where you take the code from.
^XA starts the format, ^XZ closes it. So i don't see a reason to have that multiple
You can check the contents of field data &SERNO1(12)& and &SERNO2(12)& at runtime using the sapscript debugger.
The code you posted first looks quite OK except that /E MAINTEXT is a sapscript text element that has to be triggered in the forms program (function START_ELEMENT). / in the format column just means newline. The, randomly, you use /: in the format column and the command seems to be a valid ZEBRA command sequence. This will never work because /: exoects a valid sapscript control command after that.
The best way is to go to the zebra page, make a free registration and get [ZebraDesignerSAP.exe|http://www.zebra.com/id/zebra/na/en/index/service_support.html]
Regards,
Clemens
Hi Mehul,
I remember we has pretty good results downloading and using software for the printer (exact model specified!) from the zebra web page.
Print to the spool without immediate print and check what the ouput (in raw format) looks like.
Regards,
Clemens
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.