NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to display multi-line text in XML report?

Solved!
Go to solution

Hello,

 

I am using the default stylesheet that comes with TestStand 2013 (TR5_Horizontal.xsl). Some of my test steps pass multi-line text to Step.Result.ReportText. I'm using a LabVIEW adapter, and the strings are cocatenated with the EOL constant.

 

Unfortunately, when I open the ATML report, the EOLs don't get printed -- the multiple lines get squashed into one long line.

 

How can I print multiple lines? I found a reference to RemoveIllegalCharacters in http://zone.ni.com/reference/en-XX/help/370052K-01/tsfundamentals/infotopics/report_stylesheets_deta... but can't figure out how to use it.

 

 

Thanks in advance!

Certified LabVIEW Developer
0 Kudos
Message 1 of 2
(5,441 Views)
Solution
Accepted by topic author JKSH

Hey JKSH,

 

This is a known issue with the ATML5 stylesheets in TestStand 2012, and we actually created a modified version of the stylesheets to implement this functionality for ReportText. See this forum thread for further information: http://forums.ni.com/t5/NI-TestStand/How-do-I-get-ATML-5-00-reports-to-show-CR-and-LF/m-p/2168346#M3...

 

I'm also going to attach a .zip file containing the three modified ATML5 stylesheets.

 

On a side note, you are on the right track with the RemoveIllegalCharacters--basically, the modified stylesheets call that function for ReportText data as it is being processed in the stylesheet.

Message 2 of 2
(5,409 Views)