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
-
How can I remove the page options for my home pages when I use several home pages?
I used several pages to my homepage with FireFox for a long time. I've recently updated my homepage as always - "use current pages" - now the firefox open the options page and which ones I want. It is not listed in the list of pages to open as home p
-
Equium L20 - no driver for USB and wireless adapter
I have instaled new Windows XP and that you do not have drivers for my Wireless Network Adapter Atheros AR5005G and my USB 2.0 if someone could help me from where I can download them
-
Original title: my computer does not read my minidisc recorder How can I get my laptop Dell Latitude D830 running Microsoft Windows XP to read my HHB Professional Minidisc recorder CDM 500?
-
I mistakely installed windows vista on my acer lab to can I do?
I mistakely installed an old windows vista on my acer labtop
-
(Redirected) XPS 630i
I have a xps 630i with 2 x radeon hd 3870's, graphics cards crossfire caught in charge. What can I put my graphics cards? I could fit a radeon 270 r9 or a nvidia gtx 760 or y at - it a duel map update I could go for. Any help would be appreciated .i