---
title: Use NPR Report to write to the Windows Clipboard (MEDITECH CS)
description: In MEDITECH CS using the NPR Report Writer, you can write a report that outputs any data to the Windows Clipboard;  now that is cool!
---

[![IPeopleHealthcare\_White](https://blog.ipeople.com/hubfs/IPeopleHealthcare_White.png)](https://www.ipeople.com/)

- [Home](https://www.ipeople.com)
- Products 
    - [Professional Services](https://www.ipeople.com/products/meditech-services/)
    - [Downtime Product Suite](https://www.ipeople.com/products/suite)
- [Benefits](https://www.ipeople.com/benefits)
- [About](https://www.ipeople.com/about)
- [Contact](https://www.ipeople.com/contact)
- [IPeople Blog](https://blog.ipeople.com)

February 28, 2022

# Use NPR Report to write to the Windows Clipboard (MEDITECH CS)

You can use the following steps to write data to your Windows clipboard from an NPR Report: 

1. Add the following Footnotes:  
   `AL START start`  
   `AL D detail`  
   `AL CLOSE.UP close.up`
2. File and translate your report.
3. Add a macro called start with the following code, then file and translate.  
   `@Memory.allocate("")^MEM,`  
   `@Memory.beginning(MEM)`  
   ``
4. Add a macro called close.up with the following code, then file and translate.  
   `@Clipboard.load(MEM),`  
   `@Memory.clear(MEM),`  
   `@Memory.free(MEM)`  
   ``
5. Add a macro called detail with the following code:  
   `DATA_@Z.cr.lf^DATA,`  
   `@Memory.write(MEM,DATA)`
   
   You can replace DATA with whatever you like.  You can use the NPR macro called @Memory.write to write whatever data you like to the memory buffer.  So you are not limited to just doing this in a detail macro.  The start macro creates the memory buffer and the close.up macro copies it to your Windows clipboard.
6. Retranslate your report.

 Topics: [MEDITECH](https://blog.ipeople.com/topic/meditech), [Report Writing](https://blog.ipeople.com/topic/report-writing), [NPR Report](https://blog.ipeople.com/topic/npr-report), [CS System](https://blog.ipeople.com/topic/cs-system)

## You Might Also Enjoy

<https://blog.ipeople.com/meditech-macro-translation.message-creates-useful-reminders-when-it-translate>

#### [MEDITECH macro Translation.message creates useful reminders when it translate](https://blog.ipeople.com/meditech-macro-translation.message-creates-useful-reminders-when-it-translate)

@Translation.message is an NPR Programming Macro that can be used in NPR Report Writer ...

<https://blog.ipeople.com/print-screens/reports/macros/procedure-logic-for-npr-procedures-in-meditech-c/s>

#### [Print Screens/Reports/Macros/Procedure Logic for NPR Procedures in MEDITECH C/S](https://blog.ipeople.com/print-screens/reports/macros/procedure-logic-for-npr-procedures-in-meditech-c/s)

Select the Report DPM NPR.PROC Enter a report name (any name you like) Page 1 will need a ...

<https://blog.ipeople.com/use-npr-report-to-write-to-the-windows-clipboard-magic>

#### [Use NPR Report to write to the Windows Clipboard (MAGIC)](https://blog.ipeople.com/use-npr-report-to-write-to-the-windows-clipboard-magic)

You can modify your report so that everything that prints is sent to your Windows ...

<https://blog.ipeople.com/utility-report-magic-nui-workstation-only-for-displaying-all-available-npr-icons>

#### [Utility report (MAGIC NUI Workstation only) for displaying all available NPR Icons](https://blog.ipeople.com/utility-report-magic-nui-workstation-only-for-displaying-all-available-npr-icons)

Users can attach "Icons" from the NPR.ICON dictionary to "Desktop" style menus for the ...

<https://blog.ipeople.com/using-withstart-as-a-field-attribute>

#### [Using WITH=START as a Field Attribute](https://blog.ipeople.com/using-withstart-as-a-field-attribute)

WITH is a Field Attribute that determines when a field should be evaluated during a ...

[![IPeopleHealthcare\_FullColor](https://blog.ipeople.com/hubfs/IPeopleHealthcare_FullColor.png)](https://www.ipeople.com/)

#### CONTACT

- [+1-214-222-1125](tel:+1-214-222-1125)
- [support@ipeople.com](mailto:support@ipeople.com)
- [sales@ipeople.com](mailto:sales@ipeople.com)

#### [JOIN OUR TEAM](https://ipeople.bamboohr.com/jobs/)

#### FOLLOW

- [![Facebook](https://blog.ipeople.com/hubfs/Facebook.svg)](https://www.facebook.com/IPeoplehealthcareTX)
- [![Instagram](https://blog.ipeople.com/hubfs/Instagram.svg)](https://www.instagram.com/interfacepeople/)
- [![Linkedin](https://blog.ipeople.com/hubfs/Linkedin.svg)](https://www.linkedin.com/company/ipeople-healthcare)
- [![Twitter](https://blog.ipeople.com/hubfs/Twitter.svg)](https://twitter.com/InterfacePeople)
- [![email\_icon](https://blog.ipeople.com/hubfs/email_icon.svg)](mailto:support@ipeople.com)

 

![](https://blog.ipeople.com/hubfs/IPeople_2022_Aug/Images/Home/arrow-up.png)