NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying text file in ReportView

Hello,

I would like to display a second report that include only the failed steps in a ReportView control using the CVI TestExec of TestStand 3. I have added a tab with a ReportView control. How to specify to this control whitch file to display?

Best regards,
Yannick Willener
0 Kudos
Message 1 of 2
(2,952 Views)
Hi,

The ReportView control is updated with the contents of the Report Object. Inside of the process models, eg. SequentialModel.seq, you will see a step that calls Report.Reset API method to set the report objects contents to a string. Once the Report object has been set, the ReportView control should now contain the information (string) you set the report object to (you may need to call ReportView.UpdateFromExecution method).

So, to get your custom report into the ReportView control, you should call Report.Reset or Report.Load and load the text file you wish to view. Keep in mind that the Report object belongs to an execution, for which there can be only one report object. So, you will either need to concatenate your report string, or set and reset th
e report object with the report you wish to view.

Bob
0 Kudos
Message 2 of 2
(2,952 Views)