LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

LaunchExecutable

LaunchExecutable ("C:\\Program Files\\Microsoft Office 15\\root\\office15\\EXCEL.exe C:\\MTL32_2020\\Data\\TransducersDetails.csv");

above statemnt working propely if office 15 is used for older version ms office it wont work.


LaunchExecutable ("excel.exe C:\\MTL32_2020\\Data\\TransducersDetails.csv");

if i use this statment file was not found eror is coming.

 

 

asap i need solution for seconf one.

0 Kudos
Message 1 of 8
(5,581 Views)

Can you try with OpenDocumentInDefaultViewer () from the Programmer's Toolbox?



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 2 of 8
(5,578 Views)

hello sir,

i having 5.5 lab windows your OpenDocumentInDefaultViewer () not supporting it suppport only above  lab window/cvi6.6 version

0 Kudos
Message 3 of 8
(5,569 Views)

Statement #2 probably complains about the path to Excel.exe, and that will drive you back to problem #1.

 

Statement #1 should work for every version of Excel: what happens for older Excel release? Did you get any error?

 



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 4 of 8
(5,561 Views)

stattment #1 containing pathname \\0ffice15 if i use this code in older version pc...the path name is incorect...because in older version pc i shuld give path name \\office14 or \\office13

0 Kudos
Message 5 of 8
(5,523 Views)

That's correct: you must point to an existing file on your PC.



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 6 of 8
(5,499 Views)

one more funtion am using insted of launchexetbl ,am usning FileSelectPopup  in that also CSV file not opning directly if i wright click and open it will opne excel sheet what iwant....if i select file and load the file will disappear.

 

 

 

0 Kudos
Message 7 of 8
(5,494 Views)

FileSelectPopup "simply" handles the dialog box for choosing a file and returns the pathname. What to do with it is under programmer's responsibility.

In your case, you can use returned pathname to build up the string to pass to LaunchExecutable.



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 8 of 8
(5,472 Views)