LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI_report.lvclass:Save report to File

I am using NI_report.lvclass:Save report to File by feeding it with an Excel report from NI_report.lvclass:Append Report Txt.  Debug mode work perfect. When I create an executable I get an error that points to a non-exsistant path in the build directory:

 

LabVIEW attempted to load the class at this path:
W:\CVI\LabView\builds\SSDtsDB\Main Application\Main.exe\1abvi3w\vi.lib\Utility\NIReport.llb\Excel\NI_Excel.lvclass

0 Kudos
Message 1 of 4
(1,289 Views)
0 Kudos
Message 2 of 4
(1,278 Views)

This does not seem to be the problem. I have reduced my VI back to minimal with only a create report and dispose report. If I select Word or Excel for the poly type to the create report I get an error in the compiled executable. It still works in debug mode. If I select HTML or Standard, no error.

0 Kudos
Message 3 of 4
(1,269 Views)

The problem you are having is due to "missing a function"-- you are issuing a "Dispose Report" without first doing a "Save Report" (which requires you to specify a path and filename for the report).  I posted an example (which, if I can find, I'll include a link) here earlier this year.  If I can't figure out how to insert the link, search for -- Revised "Generate Excel Report" Example, posted 14 Jan 2014.

 

Bob Schor 

0 Kudos
Message 4 of 4
(1,244 Views)