You are magic, so I'd recommend sending the printer commands to set the line height you want and the top margin of 1 inch yourself.
If your report is nothing but detail section you can do it all in a macro called AL D.
 
We set line height to 6 lines per inch and a top margin of 6 lines 1x, then set a flag to not send that command again (in case you set line height to some other value
to fit the label height you have.
 
 
AL D detail
 
detail
IF{'SET 1,
;set lines per inch to 6, then top margin of 6 lines,
D(27)_"&l6D"^!,D(27)_"&l6E"^!,1^SET},
;now set line height to whatever you need,
D(27)_"&l#C"^! 
 
 
where # = the number of 1/48ths of an inch per line.   If you want even number of lines per inch use the &l#D command which is lines per inch.
 
So D(27)_"&l8C"^! would set 6 lines per inch (48/8=6)  D(27)_"&l6C" would set 8 lines per inch (48/6=8)
 
Note the l is a lower case L.
 
 

Joe Cocuzzo
Vice President
NPR Services
Iatric Systems, Inc.
Phone/Fax: (978) 805-4115
Email: [EMAIL PROTECTED]
Web:  www.iatric.com

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rip Hunt
Sent: Friday, October 27, 2006 11:58 AM
To: [email protected]
Subject: [MEDITECH-L] Z.printer--label printing

   I'm trying to print labels on card stock that has 11 labels per column (they are bin labels for MatMan).  The report is not using an MV array. 
    The problem is that the line height is slightly too small.  The Z.printer macro has a parameter for Lines per inch, but there is no documentation (that I can find) that explains
the syntax and values that can/must be used to tweak Z.printer. 
     If anyone can enlighten me regarding these arcane matters I would be most grateful, and
an example would be very helpful.  
   I'm currently using the Z.printer from Meditech's KB 15712,

%Z.printer(/R.CPI,/R.LPI,/R.PS,/R.CPL,/R.LP,{{"",/R.PS},{/R.CPI},{"",/R.LPI}})

    For bonus points, another problem with the card stock--the top and bottom margins are
1 inch.  Any ideas how to start the first label on the first line below 1 inch?  (each label is one
"page" of five lines, so I can't use a page header).    Thanks for any help.
              --Rip H.


Rip Hunt
IS Dept.
Grays Harbor Community Hospital
Aberdeen, WA
360-537-6004


======================================
All messages should be posted in plain text.  
HTML will be converted to attachments.    

The meditech-l web site is MTUsers.com
______________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l

Reply via email to