All messages should be posted in plain text. HTML will be converted to
attachments. The meditech-l web site is MTUsers.com
======================================
Hi Lisa
I have a routine to do this included below. It is a macro and should be
put somewhere where it can be accessed from any report. It is very usefule.
I have it stored in a macro library I created here called
MIS.QUERY.zcus.npr.macro.library. This is just a report with a collection
of useful macros that I use repeatedly.
The macro is as follows
;Programmer : Ken MacPherson Created : March 22, 2005
;Purpose : Wrap Lines to Desired Length
@SETUP,
@WRAP;
SETUP
A^TEXT,
B^LEN,
C^OFFSET,
0^NDX,
""^SUB,
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"^ALPHA.NUMER
IC,
DO{>/R.MV["WRAP",SUB]^SUB ""^/R.MV["WRAP",SUB]}
WRAP
[EMAIL PROTECTED] @FILL.NEXT.LINE},
NDX+1^NDX,
TEXT:[EMAIL PROTECTED]
NOT.DONE
(L(TEXT)>LEN)
FILL.NEXT.LINE
NDX+1^NDX,
[EMAIL PROTECTED] @ADD.NEXT.WORD}
NEXT.WORD.FITS
TEXT&(L(@LINE_(TEXT#0A))'>LEN)
ADD.NEXT.WORD
TEXT#0A^WORD,
TEXT'#0A^TEXT,
[EMAIL PROTECTED] WORD;
@IS.ALPHA.NUMERIC WORD;
""}^WORD,
@[EMAIL PROTECTED]
IS.ALPHA.NUMERIC
(L(WORD)'=1)!(L(ALPHA.NUMERIC,WORD)'=L(ALPHA.NUMERIC))
LINE
/R.MV["WRAP",NDX,OFFSET]
This sets up an MV Array which can then be printed on multiple lines.
The
macro accepts 3 parameters.
A ==> the text to be wrapped
B ==> the length to wrap the line to
C ==> the field to put the wrapped lines in in the MV Array
(ie 99 would set the wrapped line in /R.MV["WRAP",NDX,99])
Hope this Helps
Ken
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Lisa I. Ward
Sent: Thursday, March 16, 2006 10:03 AM
To: [email protected]
Subject: [MEDITECH-L] NPR - Word Wrap
Does anyone know if you can word wrap for a specific field within a column
in a NPR report? For example, I have a computed field to pull the
medication trade name and there is not enough room to print the entire
description on the same line.
Any help would be greatly appreciated.
Lisa I. Ward
IS Director
Columbus Regional Healthcare System
500 Jefferson Street
Whiteville, NC 28472
(910) 642-1719
mailto:[EMAIL PROTECTED]
"Confidential information belonging to Columbus County Hospital may be
contained in this message. If you are not the intended recipient, you are
hereby notified that any disclosure, copying, distribution, or action taken
in reliance on the contents of this message is strictly prohibited. If you
have received this message in error, please delete and notify the sender
immediately."
This email message may contain confidential information and<br>
is intended only for the individual named. If you are not the<br>
named addressee you should not disseminate, distribute or copy<br>
this email. Please notify the sender immediately by email if you<br>
have received this email by mistake and delete this email from<br>
your system. Email transmissions cannot be guaranteed to be<br>
secure or error free as information could be intercepted,<br>
corrupted, lost, destroyed, arrive late or incomplete, or contain<br>
viruses. The sender therefore does not accept any liability for<br>
errors or omissions in the contents of this message that arise as<br>
a result of email transmissions. If verification is required<br>
please request a hard copy version.
_______________________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l