Method of Report.Save, the report has been made in a new path, but why is the empty file?

Hallo,

I have a problem to save the report file in a new way.

In my code, I used the Runstate.Report.Save(newpath, overwrite, 0) method to save the report.

And after the excution of the test, I can find the file of report in the right place, but if I open it, it's empty, I mean, there's nothing in this report.

Someone has an idea? Where is the problem? And what I could do?

Thank you!

Cabio

Hi Cabio,

Before answering your question, I would like to let you know that you can configure the path to the report file in the report file path tab report options.  You can choose from several options, including by specifying an expression that is customized for the report path.  This will allow you to customize where the report is saved without changing code.

If this isn't meeting your needs, the problem you're likely to have is that you access report until the report is actually produced.  To access the report object after it has been populated, replace the ProcessCleanup callback, which runs after the report has been generated.  (see the example of navigation PreUUTCallback for an example of substitution of a reminder.

Note: if you use TestStand 2012, this method will not work unless you configure Report Builder for not using a new thread.  You can configure this option in the treatment of dialogue by selecting the checkbox options more results.  If you do not want to use a new thread, you can access the report by changing the sequence of AddUUTReportAndSave in ReportGen_ATML.

Tags: NI Software

Similar Questions

Maybe you are looking for

  • Touchpad stops for a moment on my Satellite Z30 - A - 1 d 0

    Hello Earlier this week, I bought Toshiba satellite Z30 - A - 1 d 0. My touchpad seemed well, but from time to time the cursor stops working for about 1 minute. I can use the left and right touchpad button, but I can't just move the cursor. I first t

  • For results outside the while loop

    Dear friends, I have a while loop vi, which is attached to this mail. I want to update Boolean Boolean results, while the while loop runs. In fact this is not the case? Do I need to use it as a global variable or another simple method to do? Could yo

  • My taskbar hide automatically, except if a window is maximized.

    I tried with autohide on and outside and keep taskbar on and outside top. very frustrating. I have a small screen and now I have even less "real estate" to work with. Windows XP Professional SP3, intel 4 express chipset with recently updated driver

  • 10 Question about 10 Blackberry Smartphones BlackBerry

    I looked for a new blackberry, and I really like the specifications and the camera for the Q10. But I tried the new OS for Blackberry 10 to my mobile phone operator, and I really don't like the gesture-based interface. I wonder if it is possible to b

  • WebWorks App to add to the global goal of part?

    Hi, is it possible that I can my WebWorks App added to the overall goal of sharing such as BBM, email, BOX, DROPBOX...? CU UserNeo