Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How to Add a Company Logo at the Top of an HTML Report

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

Problem:
How can I add my company logo to the top of a TestStand HTML Report?

Solution:
The best way to do this is to override the ModifyReportHeader callback by adding it to your sequence file.  See the KnowledgeBase titled What is a Callback in Teststand for information about overriding callbacks.  Once you have overridden the callback, you will add one statement step to this ModifyReportHeader callback.  This statement will use the string function SearchAndReplace to search for the first instance of the <BODY> tag, and add an <img> tag directly following it.  This effectively places a picture at the beginning of the report, as seen below:

TestStand Report

Attached is an example sequence demonstrating this method.  In order for it to work, simply copy the JPEG to the C:\ drive.

Related Links:


KnowledgeBase 3JT9NORY: What is a Callback in TestStand?
KnowledgeBase 37OCGN44: Modifying HTML Report Headers to Include Custom Information in TestStand
Report Generation Explained



Attachments:
ModifyHeaderSeqFile.zip




Report Date: 05/13/2008
Last Updated: 05/13/2008
Document ID: 4LCDRCXU

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