Discussion:
Customizing the style sheets
(too old to reply)
lordsathish
2008-08-11 10:10:14 UTC
Permalink
Hi all... I need to customize the style sheets that come with Test stand.?How can i go about...?If i'm correct these style sheets use javascripts...I only need to change the template... i.e the tables,the headings...Is it possible to populate the reults directly in to Excel sheets without generating thexml files. Which call back should i override to do this...?
~jiggawax~
2008-08-11 19:10:14 UTC
Permalink
Hi,
 
You can change the stylesheets but NI does not support this.  So you have to know how to do it on your own. 
 
They are stored in: C:\Program Files\National Instruments\TestStand 4.0\Components\NI\Models\TestStandModels\StyleSheets.&nbsp; I highly recommend you copy them to: C:\Program Files\National Instruments\TestStand 4.0\Components\User\Models\TestStandModels\StyleSheets.&nbsp; Notice the difference is NI vs User.&nbsp; That way you still have the original stylesheets.&nbsp; There's a wonderful xml tutorial here: <a href="http://www.w3schools.com/xml/default.asp" target="_blank">http://www.w3schools.com/xml/default.asp</a>&nbsp; They do have Javascripts in them so you will have to figure that out as well.&nbsp; If I were you I would copy an existing stylesheet (out of the 3 provided) and then add to it and change the name.&nbsp; That way you can easily revert back to the old ones.&nbsp; You can choose your stylesheet when you change the report options.
&nbsp;
I don't understand how you can open a file in Excel without first generating it.&nbsp; If you just generate a temp file you still have to generate something.&nbsp; If you want the report to open up directly in Excel you first must make sure that excel supports your stylesheet and scripts.&nbsp; Then you can change your External Viewer to be Excel.&nbsp;
&nbsp;
Configure&gt;&gt; External Viewers...
Add and browse to excel.exe (C:\Program Files\Microsoft Office\Office12\EXCEL.EXE) or something like that depending on your version of Excel.
Change the format box to xml
check the Automatically Launch Viewer box.
&nbsp;
If you are sick of the xml files being populated on your machine you can check the User Temporary File box in the Report Options.
&nbsp;
Hope this helps some.&nbsp; Let me know if you have any quesitons,
&nbsp;
lordsathish
2008-08-12 08:40:11 UTC
Permalink
Thank you ~jiggawax~&nbsp; , Your reply was very useful...

Continue reading on narkive:
Loading...