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

Modifying HTML Report Headers to Include Custom Information in TestStand

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

Problem:
I want to include custom information in the header of my HTML report. What is the easiest way to add custom information to the existing report layout?

Solution:
The easiest way to modify your report header is to override the ModifyReportHeader callback in the client sequence file. One of the parameters sent to this callback is the current report header generated by the default HTML report generation routines. You can parse the ReportHeader parameter to add or remove information. To implement changes, you can use TestStand's built-in functions or you can create a code module in your favorite programming environment to take care of this functionality for you.

Refer to the attached "ReportHeader.seq" file that demonstrates making a simple modification to the report header. To make these changes permanent for all of the sequences executed in your station, you can modify the process model sequence file to include the changes in the ModifyReportHeader sequence.

For additional information, refer to the links below.

Related Links:
Developer Zone Tutorial: Report Generation Explained
Developer Zone Tutorial: Understanding and Modifying Result Collection
KnowledgeBase 3JT9NORY: What is a Callback in TestStand?
KnowledgeBase 314DQ9MT. ModifyReportHeader and ModifyReportFooter Callbacks Not Called when "On-The-Fly Reporting" Is Enabled

Attachments:


ReportHeader.seq - ReportHeader.seq



Report Date: 03/25/2004
Last Updated: 07/26/2007
Document ID: 37OCGN44

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