Want to launch Excel from C# app
For now, I simply want to launch Excel from a C# windows application. I've
found the MS Office Interop libraries with no documentation.
I'm expecting the following code to open the c:\temp.xls:
ApplicationClass excelApp = new ApplicationClass();
excelApp.Workbooks.Open("c:\\temp.xls",Type.Missin g,Type.Missing,Type.Missing,Type.Missing,Type.Miss ing,Type.Missing,Type.Missing,Type.Missing,Type.Mi ssing,Type.Missing,Type.Missing,Type.Missing,Type. Missing,Type.Missing);
What I'm getting is an EXCEL.EXE process started, but Excel never launches.
I'm trying to simply and quickly implement this as a part of a prototype app
where resulting data is displayed using Excel.
Any help would be appreciated.
Thanks.
|