Example Code

Attaching a Control Picture to Word or Excel 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

1. Overview:

Coding that exemplifies how to insert a picture of a control on a report.

2. Description:

This VI demonstrates how to attach a picture or a control or indicator on the front panel to a Microsoft Word or Excel report using the Report Generation Toolkit. It is ready to run; the Enum denotes whether the picture is to be attached to a Word document or an Excel spreadsheet.

3. Requirements:
1. LabVIEW 2012 or compatible
2. Report Generation Toolkit

4. Steps to Implement or Execute Code:
* Select if we desire to create a report in Word or Excel.
* Run the VI.

5. Additional Information or References: (Snippet)

Capture.PNG

National Instruments
Applications Engineer

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