<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://myipeople.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>MEDITECH Report Writer</title><link>http://myipeople.com/forums/43/ShowForum.aspx</link><description>Post questions, tips and tricks about the MEDITECH Report Writer. Open to everyone.</description><dc:language>en</dc:language><generator>CommunityServer 2.1 (Build: 60809.935)</generator><item><title>Use NPR Report to write to the Windows Clipboard (MAGIC)</title><link>http://myipeople.com/forums/thread/503.aspx</link><pubDate>Sat, 04 Aug 2007 17:08:15 GMT</pubDate><guid isPermaLink="false">858269fb-c1a4-4a80-9dbd-7a3c21d8108f:503</guid><dc:creator>Brian</dc:creator><slash:comments>0</slash:comments><comments>http://myipeople.com/forums/thread/503.aspx</comments><wfw:commentRss>http://myipeople.com/forums/commentrss.aspx?SectionID=43&amp;PostID=503</wfw:commentRss><description>&lt;p&gt;You can modify your report so that everything that prints is sent to your Windows clipboard.&amp;nbsp; This is of course only possible&lt;br /&gt;for reports run on the Meditech Remote Workstation.&amp;nbsp; Also, it is not possible for reports printed to a Spool file.&lt;/p&gt;&lt;p&gt;The Meditech Remote Workstation responds to the D(30)_&amp;quot;CB&amp;quot; by storing all subsequent data sent the Workstation in the &lt;br /&gt;Windows clipboard.&amp;nbsp; The D(0) command instructs the Workstation to stop storing data in the Windows clipboard.&lt;/p&gt;&lt;p&gt;D is called the Decode function in the Meditech programming language.&amp;nbsp; It creates the ASCII character associated with the &lt;br /&gt;code provided in parentheses.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Here are the steps:&lt;/p&gt;&lt;p&gt;Step 1: Add the following Footnotes:&amp;nbsp;AL START &amp;quot;DPM.zcus.report.M.print&amp;quot;^/R.TRANS&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AL CLOSE.UP close.up&lt;/p&gt;&lt;p&gt;Step 2: Replace &amp;#39;DPM&amp;#39; with the your Report DPM and &amp;#39;report&amp;#39; with the name of your report.&lt;/p&gt;&lt;p&gt;Step 3: File and translate your report.&lt;/p&gt;&lt;p&gt;Step 4: Create a macro called &amp;#39;close.up&amp;#39; with the following code, then file and translate it:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;a href="mailto:IF{@Not(@.pc"&gt;IF{@Not(@.pc&lt;/a&gt;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Z.spool;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Not(+/TEXT[&amp;quot;&amp;quot;]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /R.HALTED;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Not(@Z.rpt.found);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; D(30)_&amp;quot;CB&amp;quot;^#,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;&amp;quot;^TEMP,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DO{+/TEXT[TEMP]^TEMP /TEXT[TEMP]_@Z.cr.lf^#,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;quot;&amp;quot;^/TEXT[TEMP]},&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; D(0)^#}&lt;/p&gt;&lt;p&gt;Step 5: Create a macro called &amp;#39;print&amp;#39; with the following code, then file and translate it:&lt;/p&gt;&lt;p&gt;&amp;nbsp;/R.OUT:0X^/TEXT[-/TEXT[&amp;quot;&amp;quot;]+1],&lt;br /&gt;&amp;nbsp;/R.OUT^!;&lt;/p&gt;&lt;p&gt;Step 6: Retranslate your report.&lt;/p&gt;</description></item></channel></rss>