LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Open pdf file from application menu

I am looking for a way to open a file using the associated Windows application, i.e. if the file is a *.pdf file use Acrobat reader, iif it is a *.txt file using notepad.exe or whatever application is associated to that file type. If this isn't possible with Labwindows then how would I go about launching an external application without hardwiring in the exact location of said application, i.e. launch Adobe Reader without hard coding in the path to the current version that is installed.
0 Kudos
Message 1 of 4
(3,266 Views)
This is actually quite simple. Use the OpenDocumentInDefaultViewer () function in the Programmer's Toolbox.
 
 
Martin Fredrickson
Test Engineer

Northrop Grumman
Advanced Systems and Products
San Diego, CA 92128
0 Kudos
Message 2 of 4
(3,264 Views)
This is actually quite simple. Use the OpenDocumentInDefaultViewer () function in the Programmer's Toolbox.
 
 
Martin Fredrickson
Test Engineer

Northrop Grumman
Advanced Systems and Products
San Diego, CA 92128
0 Kudos
Message 3 of 4
(3,264 Views)
Thanks. As it happens I just managed to search on the right combination of words and found this function.
0 Kudos
Message 4 of 4
(3,261 Views)