01-10-2024 05:49 PM
I have created an installer for an application that has some report generation funtions (Create word Doc and Print to PDF). On my development computer in development mode, the report generation works fine. However when I create the application and installation package, and install it back to the same computer (for testing), I get the following error, see attached.
Just to reiterate, MS office is installed on this machine, and it worked in development.
I assumed the installation build would have installed all of the necessary files, but it appears not to be the case. Would somebody be able to assist me?
Thanks
Solved! Go to Solution.
01-10-2024 06:20 PM
When you build your exe, you should include report generate classes. Otherwise your exe can find the classes, hence error 7.
01-10-2024 06:29 PM
I am not sure where to do this? Is this a check box in the applicaiton build or are there files that I need to include? if it is files that need to be added, is there a document that lists all the necessary files?
01-10-2024 07:10 PM
Include the whole llb in your project, when build exe, add it to always include.
There are similar post in this forum. You can search it for more detail.
01-10-2024 07:12 PM
Here is what I found that resoved the problem. When I created an test application that used the Report Generation VI's in the top level vi,the proper classes were listed in the Dependencies and the application and installation work with no problems.
However in my case, the Report Generation VI's are being used several subvi's down. In this case the classes were not showing in the dependencies. Therefore I added the NIReport.llb folder and LVClass folder to my project. Then in my Application build, in the source files section, I Always Included these folders.
My report generation is now working
Regards