Example Code

Writing To a Header In a Word Report

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

Description

This example shows how to add data to the header of a Word report. The VI inserts the data into a Word template that has a table in the format of a header. After the data is inserted into the table, this VI runs a macro. The macro moves the table into the document header.
To use the attachment, extract all the files into the same directory. When you run the ChassisTestAutomatic (version) VI, it opens TestPlan.dot, which has the macro in it.

Related Links:
LabVIEW Report Generation Toolkit for Microsoft Office (now included in LabVIEW Professional)

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