Example Code

Creating a report using the report generation toolkit

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 Report Generation Toolkit
  • LabVIEW

Code and Documents

Attachment

Overview

This is an example of how Report Generation Toolkit is used to create a report that can be updated in LabVIEW.

 

Description

Creating a word report from LabVIEW without the report generation toolkit can be quite cumbersome. A person would have to use the ActiveX controls that Microsoft has exposed  for Microsoft Word. The Report Generation Toolkit makes it easy to use these functions in LabVIEW. The following is an example of how this toolkit is used to create a report that can be updated.

 

Requirements

  • LabVIEW 2012(or compatible)
  • LabVIEW Report Generation Toolkit 2012(or compatible)

 

Steps to Implement or Execute Code

  1. Create a word document and save it to a any location.
  2. Navigate to where it is using the report file path control.
  3. Run the VI, it will create the report. Everytime after clicking on the run arrow it will update it.

 

Additional Information or References

Front Panel

2.PNG

 

VI Snippet

1.png

 

On the VI itself there are instructions on how to run it. I have attached a sample document for your use as well.

 

 

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

 

Applications Engineer
National Instruments

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