From: Jhoskins on
Here's my 2 cents.
 
Word is already set to open the document in windows so why not just use the system exec VI to open the document. this way it will always open with word. then you just close it when you are done. i do this all of the time with help files and such.
 
Here is the VI I created to do this.
 
<img src="http://forums.ni.com/attachments/ni/170/209733/2/runapp.JPG"> Message Edited by Jhoskins on 10-11-2006 01:26 PM


runapp2.vi:
http://forums.ni.com/attachments/ni/170/209733/1/runapp2.vi


runapp.JPG:
http://forums.ni.com/attachments/ni/170/209733/2/runapp.JPG
From: Clint Eastwood on
Yes, I do need Word.&nbsp; I'm using the Report Generation Tool Kit and already written a vi&nbsp; I use an Event Structure to run the test.&nbsp; When its complete I give the user the choice to view the report ( another "Event" using a push button).&nbsp; I always save the report.&nbsp; If the user wants to View the Report ( another button) I open the word document with the correct file name using the routine on found in the discussion group.&nbsp; I fthey don't view the report they can run another test.
The sequence is as follows:
Run the Test and save the report (an Event Structure)
Using another button allow the user to view the Report ( Event Structure and the LV routine I got in the discussions group) IF they wish. Or run another test OR Exit.&nbsp;
This view the report is where I need it to launch Word with the correct test file.&nbsp; I may have to nest a Event Structure so that the user can't view a report BEFORE they've run the test.
&nbsp;