LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I open an existing Word file?

Hello,

I am new in using Labwindows and i want to open an existing Word file.

Is it possible without any Word Libraries?

After pushing a Button in the User-Interface, i want to open a Word file.

 

Sorry for my bad English.

 

Florian H.

 

0 Kudos
Message 1 of 4
(3,299 Views)

you need this function.

 

OpenDocumentInDefaultViewer ("your filename.doc", VAL_NO_ZOOM);

 

Include toolbox.fp in your project.

 

Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 2 of 4
(3,283 Views)

Unfortunately the solution proposed by test_man is not working unless you have Word installed on your machine: OpenDocumentInDefaultViewer relies on the viewer (or editor) to be installed on the machine and registered for that particular file type (the same as double clicking a file in Windows Explorer).

An alternative to full Word application, but not usable for editing, is to install the word viewer, which permits you to open and print a document.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 3 of 4
(3,276 Views)

Hi,

thank you for your answers.

 

" OpenDocumentInDefaultViewer ("your filename.doc", VAL_NO_ZOOM); "-Function works!

 

Best regards

 

Florian H.

0 Kudos
Message 4 of 4
(3,257 Views)