LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Report Generation Toolkit and Application Builder

Solved!
Go to solution
I ran this software in the development environment and it works fine. I was hoping that maybe I could step through the code and find the problem, but no such luck. I hate Heisenbugs.

I really am at a loss as to what is happening.

--

Brian Rose
0 Kudos
Message 11 of 18
(1,450 Views)

Brian,

This is a long shot.  http://digital.ni.com/public.nsf/allkb/FD7DE8BC8FFC256C862565F4006BE363

Help for Current vi's Path says this.

If you build the VI into an application, this function returns the path to the VI in the application file, and treats the application file as a VI library.

 

Message Edited by centerbolt on 10-05-2007 03:24 PM

0 Kudos
Message 12 of 18
(1,445 Views)
Good catch and definitely a problem, but not _the_ problem.

I added a widget that handled the current path depending on the system environment used in other spots. Here are the updated VIs.

I added a message box to the template path and it points to a valid file location.

Still no report.




--

Brian Rose
Download All
0 Kudos
Message 13 of 18
(1,438 Views)
I take it that the vi you posted is part of something larger and that is what is being built into .exe?
0 Kudos
Message 14 of 18
(1,435 Views)
Yes, there is a larger application, but the printing stuff is pretty much self contained.

--

Brian Rose
0 Kudos
Message 15 of 18
(1,434 Views)
Suggest you turn printing part into standalone app and see what happens.  Divide and conquer.
0 Kudos
Message 16 of 18
(1,431 Views)
You could also try wire a true constant  to the "close report" input on "dispose report.vi" that leaves excel open. Also use an indicator on the "dispose report.vi" error output to see if there any errors...
 
0 Kudos
Message 17 of 18
(1,428 Views)
Solution
Accepted by topic author Mister_Rose
OK Ifinally figured out what was happening. It was a less than complete understanding of what to do on my part.

I had added the _Excel Dynamic VIs.vi to my project and was trying to get it to build. What I did not do was to add _Excel Dynamic VIs.vi to the "Dynamic VIs and Support Files" portion of the Build Specification.

I thought that by including the dynamic VIs into the project gave the project manager the information it needed and this was passed off to the application builder. The reason I thought this because I had a previous project using the Office report toolkit that had the same problem. I was able to solve this by adding all the VIs in the toolkit to the build. After that it worked fine, although my project was horribly cluttered.

Anyway, problem solved.

--

Brian Rose
Message 18 of 18
(1,402 Views)