Unlock the Power of MEDITECH with MEDITECH KE

1

I am writing a report that simply acts as a link to pull up a pdf document using Internet Explorer. I got that to work just fine using a report that had no DPM named, no sort or select and no picture. I only have a footnote that calls a macro that performs the work. The final touch would be to suppress the MEDITECH Document Preview window that appears and is blank (with the gray background). Know any way to do that? Steve

flag

1 Answer

1

Hi Steve,

From the report title call the start macro: report title call


[start macro]
"c:\test.txt"^Z.c.cust.rw.download.path,
%Z.on.device("","",DEV,{1,1}),
"Report Title";

If security is an issue for end users, I do wonder if setting the download path, to something in the temp folder would do it.

John

link|flag
Thank-you John it worked! I had to add underscores after and before the quotes in the report title call: "_%(APP)DPM..zcus.report.name.M..start(0)_". I don't understand why the underscores work but without them Meditech crashed and brought up the debugger screen. I am going to register and add your site to my list of favorites! Thanks again, Steve. – rxman Mar 12 at 15:02
You're welcome! For one reason or another, the underscores don't show up, when I type them in to the answer box, so I've taken a screen shot and added them that way. The underscores allow you to concatenate code with the expected title text. What you don't see is the MEDITECH report writer's object code that contains the other quote. Example: "Report Title" now becomes ""_(APP)DPM.zcus.report.name.M.macro(0)_"". If there were room, you could even ""_(APP)DPM.zcus.report.name.M.macro(0)_"REPORT TITLE" inlude the report title like that. – John Sharpe Mar 12 at 17:08

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.