NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Formatting Report Page Headers/Footer in XML

Our company’s process requires us to provide specific information on each page (header/footer) of our test reports. This information includes the UUT's part number, serial number, date/time of test and page number. I have been using the "txt" format to date. I utilized NIReports to add the required page header/footer information to text file. This worked very well.

I would like to provide this same feature if our user selects the "xml" report format.

Has anyone developed an "xsl" style sheet that could perform this task?

I realize that the "out of the box" style sheets provide a report "header". The report "header" is displayed at the beginning of the report only. But what I need is information displayed at the top and bottom of each page of the report.

Any help in solving this would be greatly appreciated.
0 Kudos
Message 1 of 4
(4,435 Views)
Hi,

If I understand your question correctly, you want to have add the header information to the footer of XML report.

The easiest way to do that would be creating a report generation sequence that is called to create that XML report. The file reportgen_xml.seq is located at C:\Program Files\National Instruments\TestStand 3.x\Components\NI\Models\TestStandModels.

All you would need is to add the steps from "AddRportHeader" to "AddReportFooter". But make sure you make of copy of the existing file before making any changes.

I hope this helps,
Rajiv G
0 Kudos
Message 2 of 4
(4,424 Views)
Thanks RajivG,

I understand how to do what you are suggesting.

My problem is a little more complicated. I need to create "PAGE" headers/footers. I realize how to use callbacks to generate/modify the "REPORT" header/footer.

The difference is when a report is made up of multiple pages. The "REPORT" header and footer do not meet our requirements.

I am sorry if my original question was not clear.

Thanks for trying to help.
0 Kudos
Message 3 of 4
(4,421 Views)
Hi,

Oops! sorry for not being able to understand the question correctly.

To add pages (header and footer) to your report, like you said the best option is to get a custom XSL file that will display the data in that format. I would suggest you refer to the following links for further information:

Information Pages:
www.antennahouse.com/XSLsample/XSLsample.htm
www.ibiblio.org/xml/books/bible2/chapters/ch18.html

Dedicated Websites:
www.w3.org/Style/XSL/
www.xml.org/xml/resources_focus_topics.shtml
www.mulberrytech.com/xsl/xsl-list/

(I am not too familiar with this stuff)

Maybe you already have all this information, but just hoping something might help,
Rajiv G
0 Kudos
Message 4 of 4
(4,407 Views)