Example Code

How to take an image of a graph and append it to a word document

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: You can use the Get Image Invoke Node to save an image of your graph on a JPEG file and Report Generation Toolkit VIs to open your document and append the image to it.


Description:

You can use the Get Image Invoke Node to save an image of your graph on a JPEG file.

Also, you can use the VIs from LabVIEW Report Generation Toolkit to open your document and append the image to it.


Requirements: LabVIEW 2012 (or compatible), Report Generation Toolkit. MS Office. Hardware: none.


 Steps to Implement or Execute Code:

1. Write down the full path to your jpg.
2. Run the VI.
3. Save doc document where you want.
4. Open doc to check.


Additional Information or References: 

 

How to take an image of a graph and append it to a word document FP.png

 

If you would like to use snippet - Click on Browse... button when LabVIEW will start searching for the subVI and select the subVI from the folder where you unzipped the archive. 

How to take an image of a graph and append it to a word document BD.png


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

 

 

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

Comments
Rico P
Active Participant
Active Participant
on

Thanks for this. Works great. Have you made a VI that will insert it wherever you want in the word document rather than appending it to the end?

Thanks again!

Rico P
Smiley Very Happy
irawan_sukma
Member
Member
on

Thanks for your share .

I will try it