07-25-2014 01:10 AM
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.
07-25-2014 01:44 AM
Can you try with OpenDocumentInDefaultViewer () from the Programmer's Toolbox?
07-25-2014 04:19 AM - edited 07-25-2014 04:20 AM
hello sir,
i having 5.5 lab windows your OpenDocumentInDefaultViewer () not supporting it suppport only above lab window/cvi6.6 version
07-25-2014 06:51 AM
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?
07-29-2014 10:04 PM - edited 07-29-2014 10:09 PM
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
07-30-2014 02:32 AM
That's correct: you must point to an existing file on your PC.
07-30-2014 03:22 AM - edited 07-30-2014 03:26 AM
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.
07-30-2014 05:37 AM - edited 07-30-2014 05:37 AM
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.