[MT-L] FORCE A PAGE BREAK - MAGIC 5.4

70 views
Skip to first unread message

e.ma...@thelondonclinic.co.uk

unread,
Aug 13, 2010, 12:25:16 PM8/13/10
to medit...@mtusers.com
Hi,

Can someone help with the syntax for forcing a page break?

I have 2 issues

1) Information on a record that is split over 2 pages. I would like to
force a page break when so that the whole record is printed on the next
page.

2) I would like to force a page break every 5 records.

Any help would be greatly appreciated.

Regards

Elizabeth Mander | Application Analyst | IT Department
T: 020 7935 4444 | Ext: 3133

The London Clinic
One of the UK's most established independent hospitals | Located on
Harley Street in the heart of London's medical community | Long-standing
international reputation attracting leading consultants | Highly complex
procedures in addition to routine surgery and medicine | 24 hour
consultant-led critical care unit | over 75 years of inspired care


This email, together with any attachments, is for the exclusive and
confidential use of the addressee(s) and may contain legally privileged
information. If you have received this message in error please notify the
sender by email immediately and delete the message from your computer
without making any copies.


Trustees of The London Clinic Ltd
20 Devonshire Place,
London, W1G 6BW

www.thelondonclinic.co.uk

Registered Charity Number: 211136
Place of registration: England, UK

Company registration Number: 00307579

VAT registration Number: 494754204

Registered With: Care Quality Commission
====================================

Please do NOT send messages that ask "Please post to the list" or "I'd like to see your answers" or "Send that info to me, too" These are useless messages that just waste the email server's resources. Instead, email the original requester and ask that they send you or post the results of their question.

To UNSUBSCRIBE, go to http://MTUSers.net
for information.

You can locate the:
1) meditech-l archives
2) NPR/Magic/CS tips
3) job opportunities in the Meditech community
http://mtusers.net

If you need help or advice on how to use the meditech-l, email lo...@MTUsers.com or ju...@MTUsers.net. Both of these people help manage the meditech-l, so they are your best resource.

Joe Cocuzzo

unread,
Aug 13, 2010, 1:11:38 PM8/13/10
to e.ma...@thelondonclinic.co.uk, medit...@mtusers.com

Call the new page program from an LC or AL D footnote in a macro.

In the macro, make the call conditional on either (A) record is too big for remaining lines or (B) you have hit the fifth record.

Assume you know that the record is 10 lines long

Magic:

IF{/.LL<10 %[/R.NEW.PAGE.PGM](0);
CNT+1^CNT\5=0 %[/R.NEW.PAGE.PGM](0)}

In C/S the code would be the same except lines left is kept in /R.LL vs /.LL
and the new page program / variable contains the prefix as well as the program name

IF{/R.LL<10 [/R.NEW.PAGE.PGM](0);
CNT+1^CNT\5=0 [/R.NEW.PAGE.PGM](0)}

Note - On vacation 8/15 - 8/22, on company retreat 8/25-8/27

Joe Cocuzzo
Vice President
NPR Services
Iatric Systems, Inc.
Phone/Fax: (978) 805-4115
Email: mailto:Joe.C...@iatric.com
Web: http://www.iatric.com/

Iatric Systems is a leading provider of integrated software applications, interfaces and reporting solutions for hospitals and healthcare systems.
__________

Ganesh Seshadri

unread,
Aug 13, 2010, 2:47:48 PM8/13/10
to Joe Cocuzzo, e.ma...@thelondonclinic.co.uk, medit...@mtusers.com
What kinds of recreational activities do you have in the Iatrics retreat?
- contest for the most creative "can't do that in Meditech" solution
- contest to pack the most logic in 255 characters
- find the most obscure unintended use for a function
- "who can find the bug first?" using customers' buggy reports
- who can come up with the most undocumented routines/features,
...

Ganesh Seshadri
Indiana Regional Medical Center
(724) 357-7012

Reply all
Reply to author
Forward
0 new messages