From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Check if Report Generation Toolkit works in LabVIEW

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 that verifies the correct installation of the Report Generation Toolkit for Microsoft Office.

 

Description:

It uses a simple Automation Open to verify that we can open a reference to a Microsoft Excel ActiveX object, and then subsequently make the Excel Window visible for 5 seconds before closing it out.

If the excel window opens, but the Report Generation Toolkit VIs fail to work, then we can conclude that the problem is in the Report Generation Toolkit installation.

Conversely, if this fails to open the Excel window, then we can conclude that the problem is in the installation of Microsoft Office.

 

Requirements

LabVIEW 2012 (or compatible)

Report Generation Toolkit for Microsoft Office 12 (or compatible)

 

Steps to Implement or Execute Code

  1. Run VI
  2. Excel Application Window visible for 5 seconds before closing it out

Additional Information or References

 

Snippet 10843.png

 

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

Raj
National Instruments
Applications Engineer

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