NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Specify stylesheet relative to the reports in the same server

Hi,

I'm using TestStand 2017 32-bit.

 

I need to generate Reports in ATML 6.01 format. I would prefer that the generated xml refer to the stylesheet in a relative way. I also prefer to set this in the client sequence.

 

I've tried unsuccessfully different settings by changing the following parameters (overriding ReportOptions callback):

StoreStylesheetAbsolutePath

RelStylesheetPath

StylesheetPath

 

Let's say the reports are stored here:

\\server\Reports

and the StyleSheet is here:

\\server\StyleSheets\tr6_horizontal.xsl

 

If I save a report with

Parameters.ReportOptions.StoreStylesheetAbsolutePath = True

, then the stylesheet address is not set correctly in the xml, because some default Directory is used instead, independently of what I set on StylesheetPath. By changing manually in the xls:

href = ..\StyleSheets\tr6_horizontal.xsl, then I can open the report correctly with Internet Explorer.

 

But if I use:

Parameters.ReportOptions.StoreStylesheetAbsolutePath = False,

Parameters.ReportOptions.RelStylesheetPath = "..\\StyleSheets\\tr6_horizontal.xsl"

then the report is saved correctly (I can open it with Internet Explorer, for example), but TestStand fails showing the report because the stylesheet reference it tries to use is "C:\Users\<Windows user>\AppData\Local\Temp\TestStand\..\StyleSheets\tr6_horizontal.xsl"

 

Thank in advance.

0 Kudos
Message 1 of 1
(1,565 Views)