LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

printing report to MS word

i'm building a stand alone application that puts the collected data into Microsoft Word, and it then sends the word report to the printer when click Print from my LabVIEW.  But when click Print it runs and generates error message that says "Error 7 occured at Open VI Reference in Dispose Report.vi ->Word Report.vi ->Main.vi".  I think i'm missing something during building application stage but i'm not sure what it is.  How can i approach this error?
0 Kudos
Message 1 of 5
(3,535 Views)
in the cd with the report generation toolkit you can find the procedure for building an executable.

You have to add the following vi's dinamically:
- vi.lib\addons\_office\_exclsub.llb\_excel dynamic vis.vi

- vi.lib\addons\_office\_wordsub.llb\_word dynamic vis.vi
Software developer
www.mcm-electronics.com





PORTUGAL
0 Kudos
Message 2 of 5
(3,531 Views)
i'm not sure which CD you're talking about, is it the LabVIEW  installation CD?
shouldn't this addons subfolder included in LabVIEW directory already when LabVIEW was install in my computer?
0 Kudos
Message 3 of 5
(3,512 Views)
 

Hi locman,

This error happens when the Report Generation Toolkit's dynamic VIs are not included during the build process. There are two great knowledge-base articles that deal with this error 7 and using the Report Generation toolkit in word and excel. The first one  Please take a look at it and let us know if you have any other questions. I hope this helps!

Carla

 

National Instruments
Applications Engineer
0 Kudos
Message 4 of 5
(3,491 Views)
many Thanks, you've been a great help!
0 Kudos
Message 5 of 5
(3,468 Views)