LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to open a excel file without using activeX automation in Teststand

I know I  can use ActiveX automation to open a specialize excel file. However, long time ago, I once knew there was another way to open excel file, that way was using "call executables" step type to call a txt file and then indirectly open excel file. 
Hope somebody can help me this.
 
 
Thanks!
Jacky
0 Kudos
Message 1 of 2
(3,130 Views)

Hi,

you can simply use the "LaunchExecutable" function as follow:

 error = LaunchExecutable ("excel.exe c:\\test.xls");         

(where c:\test.xls is the path and file you want to open)

This function return without waiting the excel to exit. Use "system()" if you need your program stop

Bye

 

0 Kudos
Message 2 of 2
(3,127 Views)