LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Interesting Problem

I have a list box in my labview front panel, that list box displays a list
of files such *.doc files. What I want labview to do is open the selected
file in Microsoft Word. By using property nodes I can select certain files
in the list boxes, but I am having difficulty finding a way to launch microsoft
word and then open that file in Microsoft word.
0 Kudos
Message 1 of 2
(1,411 Views)
You need to call Microsoft Word using ActiveX. see the following example.

http://zone.ni.com/devzone/devzoneweb.nsf/Opendoc?openagent&6BF7DD07DF2263DD86256793005B0C53

The only thing you would do different is that get the "Documents" object from "Word.Application" object and then you need to execute "Open" method on document object and wire the path of the word file to be opened.

Hope this would get you started.
Abdullah
0 Kudos
Message 2 of 2
(1,411 Views)