All messages should be posted in plain text.  HTML will be converted to
attachments.    The meditech-l web site is MTUsers.com
======================================

Wayne,

I believe by "we got from Iatric", you mean a report you have written
yourself based on the technique shown in our MUSE Tips and Tricks
seminar in 1999.  


The technique was to divert all the output that would go to the printer
into an saf, so that you can do a search and replace to insert the final
page count into each page header, then divert the output back out to a
printer.

I expect that your basic problem is due to a feature of NPR report
writer introduced several releases ago.  When you add a custom sort, or
rearrange the sorts of a report, a report then goes into a two step, (A)
compile/build temp index and then (B) loop on temp index and print
process.  To avoid holding on to a printer during the compile for these
"two step" reports (where you see the "Number of Records Sorted"
message), Meditech changed the translator so that the NPR report reopens
! to the output device when a report has a temp file, after the temp
file is built, but before printing.
This avoiding the problem of a report with a lengthy compile keeping the
printer "busy" during the selection of records.

Somehow this twist in the way output is done is breaking our trick of
diverting data to your own saf, then reprocessing it, then sending the
data back out to the printer.  I expect that something about the new way
of opening the printer at a later stage in the report execution is
causing the output to be lost.

An added twist that you need to deal with is that Meditech also will
reallocate a new saf PER PAGE when you are spooling.  This is to support
Print Preview.  I expect that when Joel demonstrated the 1999 tip, he
would have mentioned that it will not work when the user spools the
output.

You've asked for my help separately on this report so I will take a look
and see if the technique can work in a report with a temp sort.




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


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kern, Wayne
Sent: Friday, May 19, 2006 1:24 PM
To: [email protected]
Subject: [MEDITECH-L] problem with Page x of y in NPR report

All messages should be posted in plain text.  HTML will be converted to
attachments.    The meditech-l web site is MTUsers.com
======================================

I am working on a report that's printing in the header page x of y using
the code we got from Iatric.  The problem seems to be the sort.  If I
stick with the default sort, page x of y works fine.  If I alter the
sort the way the users want it, the report will not print to the printer
at all.  Meditech acts like it's printing, but nothing comes out of the
printer. 

Suggestions?

Thanks,
Wayne Kern
St. Joseph Medical Center
Towson, MD
The information in this communication is confidential and private and
intended only for the use of the addressee.  Unauthorized use,
disclosure, distribution or copying is strictly prohibited and may be
unlawful.  If you received this communication in error, please destroy
it and inform us of the erroneous delivery by return e-mail.  Thank you
for your cooperation.



_______________________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l

_______________________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l

Reply via email to