Adding Images and Text to an XML Report Header or Footer

TestStand 2017 Help

Edition Date: November 2017

Part Number: 370052W-01

»View Product Info

Download Help (Windows Only)
NI TestStand 2014 Help
NI TestStand 2014 SP1 Help
TestStand 2016 Help
TestStand 2016 SP1 Help
TestStand 2017 Help

You can modify the XSL code that generates report headers and footers. Complete the following steps to add images and text to report headers and footers using the horizontal.xsl file, report.xsl file, or expand.xsl file.

  1. Open the .xsl file you want to change.
  2. Remove the comment tags from around the following lines of code after the ADD_HEADER_INFO comment to add a company logo to the header and add a Computer Motherboard Test header to the report:

    <img src = '/images/reference/en-XX/help/370052W-01/companylogo.jpg'/>
    <span style="font-size:1.13em;color:#003366;">Computer Motherboard Test</span><br/>

    The HTML <img> tag provides additional functionality, such as aligning the image to the left, right, or center. Refer to the W3Schools website, located at www.w3schools.com, for more information about the <img> tag.
  3. Search for the ADD_FOOTER_INFO comment and remove the comment tags from around the following line of code before the closing </body> tag to add the text TestStand Generated Report to the footer of the report:

    <span style = "font-family:arial;color:#003366;">TestStand Generated Report</span>
  4. Add CompanyLogo.jpg to the C:\Images directory.

horizontal.xsl

The following figure shows a modified report header using horizontal.xsl:

Modified Report Header Using horizontal.xsl

The following figure shows a modified report footer using horizontal.xsl:

Modified Report Footer Using horizontal.xsl

report.xsl

The following figure shows a modified report header using report.xsl:

Modified Report Header Using report.xsl

The following figure shows a modified report footer using report.xsl:

Modified Report Footer Using report.xsl

expand.xsl

The following figure shows a modified report header using expand.xsl:

Modified Report Header Using expand.xsl

The following figure shows a modified report footer using expand.xsl:

Modified Report Footer Using expand.xsl

WAS THIS ARTICLE HELPFUL?

Not Helpful