Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
13 ratings:
 3.23 out of 5   

Inserting Images into a TestStand Report

Primary Software: TestStand
Primary Software Version: 2016
Primary Software Fixed Version: N/A
Secondary Software: N/A

How can I insert images into a TestStand report?

You can insert images into a TestStand report by modifying the report file to contain the following HTML code wherever you want your images to appear:

<IMG ALT="My Picture" SRC="myimage.gif"></IMG> 

The myimage.gif text represents the image you want to see displayed in the report. You will need to replace this with the file name of your image. The My Picture text is an alternate text string that appears if the image is unavailable, if the user moves over the image with the mouse, or if the user has image loading turned off.

Note: You must save the picture in the directory in which you saved the sequence file. Also remember that because text files cannot have images embedded in them, the report must be in HTML format or XML format. If you are using an XML format, you must have the closing </IMG> tag. If you are using an HTML format, the closing </IMG> tag is optional.

The example in the Related Links below adds this HTML code in the Post-Expression of the Step. The expression is:

Step.Result.ReportText = "<IMG ALT='My Picture' SRC='myimage.gif'></IMG>"

Note: You must use the single quotes in this expression because the HTML is inside of a String.

The image below shows the expression to insert the image from the example:

Related Links:
Embedding a LabVIEW Control Image Into a TestStand Report


Report Date: 08/28/2002
Last Updated: 09/29/2017
Document ID: 2ORG4KVW

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit