LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MS Office Report problems after compliing (application builder)

I'm finishing up an application that includes several MS office reports (opens a MS Word template). The template is opened, the bookmarks are filled, then the file is saved (to our internal network) as a .doc file. The New Report.vi is used to open the .doc file, the Print Report.vi is used to print the file, then the SMTP send file.vi is used to email the file.

Everything has been working fine then I decided to build the application for distribution. Big mistake! An installer is made. When I install the application I get "File not found" (error 7) errors each time I attempt to run this section of code. Incidentally, This app. also uses the SQL database toolset to read and write to a database. No problems with the database.

I thought it might have something to do with the Word templates being on the network. I copied everything to my local PC and built another application. Same problems.

I suspect I'm doing something wrong in the Source Files tab of the Build Application or Shared library window.

I'd really appreciate your help.

thanks,

todd
0 Kudos
Message 1 of 4
(2,978 Views)
Todd,

You need to add a dynamic VI to your list of Source Files in the Build Application window. The one you need is called "_Word Dynamic VIs", and it can be found at \vi.lib\addons\_office\-wordsub.llb . Doing this ensures that the executable can find the appropriate code when it is asked to dynamically load some Word-related VIs at execution-time.

I consider the difficulty of getting everything right when building executables to be just about the biggest problem that LabVIEW has, so don't feel too badly about it. I believe this requirement is covered somewhere in the Report Generation Toolkit documentation, but I think the process should be easier and more transparent to the user when they are working with NI-produced toolkits.

--John
Message 2 of 4
(2,971 Views)
John,
Thanks a ton for the input. I missed the _wordsub.llb file requirement and have been fighting with this for two days.

This is the first time I've had to distribute a LV application and would agree with you that building the exectuable could be easier.

If I could figure out how to give your stars I'd give you 10.

thanks again,

Todd
0 Kudos
Message 3 of 4
(2,957 Views)
Good!
" 一天到晚游泳的鱼"

labview@263.net

我的个人网站:LabVIEW——北方客栈 http://www.labview365.com
欢迎加入《LabVIEW编程思想》组——http://decibel.ni.com/content/groups/thinking-in-labview
0 Kudos
Message 4 of 4
(2,879 Views)