NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Teststand Customizing Report Header - XML

I wanted to simply add an image to the report header, and I use the ModifyReportHeader callback and the added the following expression.  This shows the image correctly for HTMl report, but gives an error with the XML style with expand.xsl style sheet.

 

What did I do wrong? 

Parameters.ReportHeader = "<img src='C:\\Logo.jpg'>" + Parameters.ReportHeader

 

Thanks,

Top Cat

0 Kudos
Message 1 of 2
(3,116 Views)

Top Cat,

 

first of all, you are missing the closing tag '</img>'. This is optional for HTML, but required for XML. This will remove the error message.

But still, the image will not be displayed because the style sheet does not instruct the browser to do so. The best approach for you is to modify the style sheet (backup it first!) to display your image. If it is a static image, this is all you have to do.

 

hope this helps,

Norbert 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 2
(3,099 Views)