NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to modify Report Directory at Runtime??

Hello

I need to modify the Report Directory at runtime, i have selected "Client Sequence File Directory" in Report Options for the directory BUT i need to modify the Directory Location to "..\Client Sequence File Directory\Reports" where Reports is a new folder within the folder in which the sequence is lying.
I also can not set the "Directory" by specifying the fixed path in report options bcoz for different sequences folders are different.

Regards
Goel
0 Kudos
Message 1 of 4
(3,481 Views)
Hello Geol,

to change the Report Path at Run-Time you need to call ReportOptions Callback and change some Parameters:

Parameters.ReportOptions.Directory = <YourReportDirectory>,
Parameters.ReportOptions.DirectoryType =  "SpecificDirectory",
Parameters.ReportOptions.ReportFilePath = <YourReportPath>

Hope that will help.
Regards
MY
0 Kudos
Message 2 of 4
(3,477 Views)
hello,

Could u please suggest some other workaround as I dont want to call the report options callback.
I need to create a new folder"Report" at the same path where sequence is located and store the report in this "Report" folder that have been recently created.
This all should be done at runtime bcoz i have a liability that sequence files are located at different folders, so i need to get the sequence filepath and than create a new folder "Report" for report to get stored.
Looking forward to hear from u soon.

Thanks & Regards
kulwant singh
0 Kudos
Message 3 of 4
(3,446 Views)
Hello Kulwant,

I have write a simple example, please see the attachment.

I still
call the ReportOptions Callback, because I think it is the easiest way to solve your peoblem.
Regards
MY
0 Kudos
Message 4 of 4
(3,438 Views)