on 10-12-2009 12:23 PM
Hi All,
My requirement is to print labels on a roll.
user enters the number of labels to print on the selection screen.
Depending on the input Labels should print on the printer roll paper.
Suppose user enters 10 labels to print, on the selection screen ,
then 3 labels should print on each row and the last row should print 1 label. How to achieve this requirement.
I developed the ZPL code with the dimensions given in the specification and uploaded in the sapscript MAIN WINDOW.
Thanks in advance.
Hari
If you want to print labels, i hardly would recommend SAMRTFORMS rather than sap-script, due to way much better formatting options through templates or tables.
then in print programreorganize your data table.
you data table has a certain structure, lets use MARC for example.
what you then need is a new deep table, which has three fields (L,M,R) left mid right.
where every field has structure MARC. now loop over your table, store records of sy-tabix mod 3 = 1 in field L,
store records of sy-tabix mod 3 = 2 in field M,store records of sy-tabix mod 3 = 0 in field R.
now when looping over this new built table you got per record all info needed to print a line of three labels..
hopefully you got my hints, and this is enough to get you started.
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 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.