LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

The program Excel don't start from CVI.

Hi.
I tried to open the program Excel from my CVI aplication.
I have used the function:
error = Excel_NewApp (NULL, 1, LOCALE_NEUTRAL, 0, &ExcelAppHandle);

I think that my problem apairs when I use the Calendar object (I create an ActiveX object using MSCAL functions) and after that I try to open Excel.
If I try to open Excel before using the MSCAL functions, Excel opens whithout a problem.

I tried to use the function:
CA_DiscardObjHandle (*objHandle);
but this has no efect.

Thanks.
0 Kudos
Message 1 of 3
(3,225 Views)
What's the error message you get back? Did you remember to register the activeX control by using the following command "regsvr32 mscal.ocx"?
0 Kudos
Message 2 of 3
(3,225 Views)
I don't know much about ActiveX but maybe it works when you start Excell with CreateProcess( ) (from WindowsSDK) first ?
0 Kudos
Message 3 of 3
(3,225 Views)