LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MS Word report works in debug not executable

When I am in debug mode my vi is able to open MS Word with no problem. I am using Labview 7.1 and windows 2000.
When I create and executable,  MS Word does not open.  (Everything else works.)
 

I've included the sub vi, located in the vi.lib >> addons >> _office >> _wordsub.llb >> _worddynamicvis.vi, as a dynamic vi when building my app. 

I've attached my build script, but I have to admit, I have no idea what to do with it.

 

Any ideas on what I am doing wrong?

 

Bill

0 Kudos
Message 1 of 7
(3,856 Views)
Have you tried setting the Visible property of MS Word to True?
0 Kudos
Message 2 of 7
(3,846 Views)
No, I haven't tried that. Probably because I don't know how. I looked at my block diagram, Configure MS Office report, and I don't see anything about it being visible. Am I looking in the right place?
0 Kudos
Message 3 of 7
(3,832 Views)

are you disposing the report at the end?

If No, plz do that and connect a False value in close report terminal in dispose report. 

Message Edited by Ranjeeta on 10-09-2007 07:18 AM

Message 4 of 7
(3,827 Views)
Message 5 of 7
(3,819 Views)

There was another thread similar to this recently, and the cause of the problem was that the user was building a path to a Word (or Excel) template based on the Current VI's Path.  When built into an EXE, that function returns a different path (that includes the .exe), which was screwing up his template path...when an invalid template path is sent into the New Report.vi, it won't open Word/Excel.  Could this be the problem?

If that doesn't help, it would be useful for you to post a simple VI that demonstrates the problem (when built into an EXE) so we can help investigate.

Good luck,
-D

0 Kudos
Message 6 of 7
(3,809 Views)
I will try to work on a simple executable when I return from vacation. Maybe I will just save everything to a txt file.
0 Kudos
Message 7 of 7
(3,786 Views)