Page 1 of 1

Executing an excel file from cspro

Posted: July 7th, 2019, 12:31 pm
by AriSilva
I wanted to start an excel file from inside a cspro application.
I´ve tried to use the execsystem but it does not execute the file, as in
execsystem("ELSI_51_Controle_Coleta.xlsm");
If I put the whole path for the excel application in my machine it calls the excel, but this is not good enough, since I´m sending the application elsewhere, where I do not know the excel full path.
Best
Ari

Re: Executing an excel file from cspro

Posted: July 7th, 2019, 7:41 pm
by josh
Try the following:

execsystem("explorer.exe ELSI_51_Controle_Coleta.xlsm");

In the upcoming version 7.3 it will be even simpler. You will be able to do:

view("ELSI_51_Controle_Coleta.xlsm");

Re: Executing an excel file from cspro

Posted: July 8th, 2019, 9:55 am
by AriSilva
It worked!!
Thanks very much indeed.