NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

StyleSheetPath

Solved!
Go to solution

sma,

 

Thank you for the extensive debugging you put into figuring out this problem.  As you noted, you would have to use the RelStylesheetPath property to change the style sheet dynamically.  In the DetermineStylesheetPath sequence in reportgen_xml.seq, there are two sections: one for if "Store Absolute Path" is checked in the Report Options and another if that is not checked.  If "Store Absolute Path" is checked, then TestStand uses the search directories to find the stylesheet based on the relative path in RelStylesheetPath and stores the actual path in StylesheetPath.  This is where it was overwriting your data.  Because you put the path in RelStylesheetPath, TestStand was able to find that path and store it to StylesheetPath.  In the second section, if "Store Absolute Path" is not checked, the first step is to overwrite the StylesheetPath with the RelStylesheetPath, which would again overwrite your data.  You can modify this sequence if you want it to make more sense, but to do what you want, the best thing to do is just write your new style sheet path to RelStylesheetPath so TestStand will take care of the rest for you.

Eric B.
National Instruments
0 Kudos
Message 11 of 11
(872 Views)