LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Report Generation Toolkit and Application Builder

Solved!
Go to solution

I am going insane trying to work this out.

I am trying to build an EXE program using Application Builder. The program uses the Office Report Generation Toolkit.

I have tried including the dynamic VIs into the project, both from the Development machine and from the CD. I still have the same problem : the application does not start Excel. It is like the commands go into a black hole. There isn't even an error message.

I have attached my report VI for you to peruse. Any help is appreciated.







--

Brian Rose
0 Kudos
Message 1 of 18
(4,401 Views)

Brian,

I'm guessing LV8.2  What version of Report Gen Toolkit?  Which dynamic files did you try to add in application builder?

0 Kudos
Message 2 of 18
(4,400 Views)
Yes, Labview 8.2
Office Toolkit = 1.1.1

I have tried many combinations of what files are included, from just the top level VI, to every VI in the heirarchy tree (a major pain). I am now trying to rebuild the project from scratch and see if that does anything.



--

Brian Rose
0 Kudos
Message 3 of 18
(4,398 Views)

Brian,

Make sure you are adding the following as a dynamic vi in the Application Builder.

_Excel Dynamic VIs.vi located in  vi.lib\addons\_office\_exclsub.llb

0 Kudos
Message 4 of 18
(4,394 Views)

Yup, did that. I even added the Word module, too.

No luck.

The really bizarre thing is that I have another piece of software running on the same computer that uses the same test report module (with a different test data structure) and it works fine.



--

Brian Rose
0 Kudos
Message 5 of 18
(4,380 Views)

Brian,

The New Report.vi has a terminal named Display Alerts.  By default it is FALSE.   If you set this to TRUE it will allow errors and warnings generated by Excel to be displayed.  You might give this a try and see if Excel is having a problem.

0 Kudos
Message 6 of 18
(4,376 Views)

I tried setting the "Display Alerts" flag on NewReport.vi, but again nothing happened. I'm going to but some dialog boxes on the error lines and see if anything pops up.


--

Brian Rose
0 Kudos
Message 7 of 18
(4,356 Views)
When I plug into the Error cluster, I got an error about making sure all shared libraries are included.

I did have the Dynamic VIs discussed in other posts in the project. Do I need to include some DLLs or something?

--

Brian Rose
0 Kudos
Message 8 of 18
(4,348 Views)

Brian,

I have never had to add anything more than the previously mentioned dynamic file.  Maybe you should create a simple vi that opens your template, edits one cell and exits.  Test that and see what happens.

What version of Excel?

0 Kudos
Message 9 of 18
(4,345 Views)

Excel 2003
--

Brian Rose
0 Kudos
Message 10 of 18
(4,343 Views)