Example Code

Easy Print VI Panel or Document Example

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Download All

Overview
This is a VI that can create, print and save pre-formatted reports.


Description
This VI is able to easily create a report based on some pre-defined format. You can choose the type of format in the "content" terminal of "Easy Print VI Panel or Documentation". You can generate different types of reports (word, excel, html,etc) by choosing it in the "Report Type" terminal of " "Easy Print VI Panel or Documentation" vi. Next the "Save Report to File" vi will save the generated report in the provided file path by user in "Report File Path" terminal. 


Requirements

  • LabVIEW 2012 (or compatible)
  • Report Generation Toolkit for Microsoft Office.


Steps to Implement or Execute Code

  1. Set the Target VI Path and the Report File Path as well the Report Type and Contents.
  2. Run the VI.

 

Additional Information or References
VI Block Diagram

 5-84.png

  **This document has been updated to meet the current required format for the NI Code Exchange.**

 

 

National Instruments
Applications Engineer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.