StyleSheetPath

With the help of the ReportOptionsCallback I try to set the stylesheet as:

Parameters.ReportOptions.StyleSheetPath = "c:\temp\xyz.xsl", running the sequence containing the callback fails to define the correct path.

From in the sequence and not to use the callback, the style sheet is specified as:

RunState.Report.StyleSheetPath = "c:\temp\xyz.xsl", which correctly displays the report generated using the style sheet specified.

Why the reportoptions reminder does not correctly change the style sheet.

I use TestStand 4.1.1

More information about this problem:

Follow until the call to FindFile in RecomputeStyleSheetPath, the name of the file used as input parameter FindFile is ReportOptions.RelStyleSheetPath with the output using ReportOptions.StyleSheetPath

As the RelStyleSheetPath is defined in the default file (defined through the ReportOptions) and he is still via the search directories of the output that ReportOptions.stylesheetpath is replaced with the full path of the file referenced by RelStyleSheetPath.

I think it might be a bug, as if the relative path is specified by the reports option affecting a different part of the RecomputeStyleSheetPath is used.  If this isn't a bug then to dynamically change the StyleSheetPath you must use RelStyleSheetPath member of the report option.

With the help of the RelStyleSheetPath in the results of ReportOptions reminder in the stylesheet changing according to the needs.

Tags: NI Software

Similar Questions

  • Specify the stylesheet in SequentialModel

    Hello

    I use TestStand 2012 on a Windows 7 PC. I have problems with dynamically by specifying a StyleSheetPath (for XML report format) within the SequentialModel. When you specify the path by using Runstate.Execution.Report.StyleSheetPath, the correct style sheet is used when the report is displayed in TestStand completed report tab. However, this stylesheet is not saved on the report on the disc. Instead, the report on the drive uses the default stylesheet as specified in configure > treatment result.

    What does not, is when I use Parameters.ReportOptions.RelStyleSheetPath of the ReportOptions reminder in my customer database (this causes the style sheet correct to use TestStand both in the report on the disk). Unfortunately, this reminder is empty in the SequentialModel and does not appear to be running at least that the substitution of a client file.

    We have a huge amount of client files, and add the same ReportOptions reminder to all of them is not ideal. I need a method to specify the style sheet path once dynamically in the SequentialModel. Any help would be appreciated.

    Kind regards

    Chris

    Hi Jigg,

    ReportGen_xml.seq does not contain a reminder ReportOptions. NI_ReportGenerator.SEQ has the recall, and this edition does not seem to work, thanks for pointing me to the finger in the right direction.

    Kind regards

    Chris

Maybe you are looking for