NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Modify Header in XML report

There is an example in the users manual to modify the report header by using a callback, Chapter 10-12 Adding to a Report Using Callbacks. Will this work for xml reports in TS 3.1? I don't have any experience with xml, but need to add text and possibly an image to the header of a report.  My attempts so far do not generate any errors, but do not output anything to the report. I can break on the statement in the callback so I know it is called as the report is generated.

 

0 Kudos
Message 1 of 3
(3,197 Views)

XML is a language designed to contain data with no information on how to present it.  You can open the XML report in notepad to see what the raw XML data looks like.  You'll notice it is far different than how you view the report.  To make the data more presentable, a style sheet (XSL) is used to translate the data.  This converts XML data into a HTML document to present the data in a more user-friendly way.  The style sheets are completely customizable.  If you wish to display a picture, you would need to modify the style sheet.  You also may need to modify the header of the XML document to describe what picture should be displayed.  These tasks are not trivial for beginners in XML.

For more information on XML, i would recommend http://www.w3.org/XML/.

 

Allen P.

NI

0 Kudos
Message 2 of 3
(3,183 Views)

Not exactly the answer I wanted to hear but I really appreciate the information. I was hoping there was an updated example lurking somewhere that showed the equivalent procedure for use with the xml based reports. Looks like I get to learn something new.

Thanks for the answer and the links.

0 Kudos
Message 3 of 3
(3,170 Views)