NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I create a html file from a xml report file (with style sheet) programmatically?

How can I create a html file from a xml report file (with style sheet) programmatically?

What code model (dll or activeX method) can I call?

I'm not asking about setting the report style to html in report options.

 

Customer require

  • Report Type XML
  • On the Fly reporting turned on
  • Special report file naming convention
  • Appending PASS or FAIL to the report file name
  • Encrypting the report file
  • FTP the report file back to them real time
  • Do not modify the “out of the” box process model

We have this all working through sequence file call backs without modifying the “out of the box” process model. Though I did try very hard to convince my customer to allow me to create a special process model.

 

We have been writing both the encrypted and non-encrypted .xml report file. The encrypted file to send back and the non-encrypted to be able to be viewed locally on the test line to help debug failures.

 

Customer would like to create a viewable html file from the xml to leave for viewing locally and ftp the encrypted xml file and not leave a copy of the non-encrypted xml file locally.

 

So how can I create a html file from a xml with style sheet programmatically?

 

TestStand will create a TempReport.html report file from the xml file to view when the report tab is selected during a test or at the end of the last UUT when no other unit to test. Basically would like to create this viewable html file for each UUT.

 

Thanks

Omar

 

0 Kudos
Message 1 of 2
(3,720 Views)
Hello Omar,

The example code Programmatic Printing of TestStand Reports - Modular contains a sequence that will convert an XML file to an HTML file given the XML file's path and the path to the stylesheet.  It may need to be altered to fit with the modifications you have already made to the report generation routines, but I think it should definitely get you off on the right foot.  Let me know if you have any questions!

NickB
National Intruments
0 Kudos
Message 2 of 2
(3,718 Views)