Example Code

Modify Report Generated from Template (Word)

Code and Documents

Attachment

Overview

This VI shows how to change the formatting on a table in a report after that report has been generate from a template using the MS Office Report Express VI.

Description

This VI is a modified version of the Generate Report from Template (Word) example from the LabVIEW Example Finder. The VI generates an initial report from a template using the MS Office Report Express VI and then reopens the report to format one of the tables using the lower level Report Generation SubVIs. See the detailed help for more information about the individual functions. The VI generates two reports in the same directory that this VI is saved in: Test Report, the report initially generated from the Express VI, and Test Report 2, the modified report with the final table formatted to have white text and for the first 2 cells to be shaded black.

 

Note: This is a fairly rough VI; it's just meant to show one way to programmatically format a report created from an existing template.

Modify Report Created From Template.png

Steps to Implement or Execute Code

  1. Download the appropriate version of the code.
  2. Run VI VI.

Requirements

Software: LabVIEW 2013 and a compatible version of the Report Generation Toolkit

Hardware: N/A


Ryan K.
Product Manager, ATCA and BEEcube
National Instruments

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

Contributors