Hi,
In windows applications I am using C#.net.
My requirement is to open an excel file that already exists in my drive.
I am using this sample code, but my problem is it was showing the error one time and it was working perfectly the next.
Please help me, where am I going wrong?
Here's my sample code;
Excel.Application xlApp;
Excel.Workbook xlWorkBook;
object misValue = System.Reflection.Missing.Value;
xlApp = new Excel.Application();
xlApp.Visible = true;
xlWorkBook = xlApp.Workbooks.Open("C:\\Documents and Settings\\Owner\\Desktop\\intetrfacetest.xlsx", misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue, misValue);
error is :
Creating an instance of the COM component with CLSID {00024500-0000-0000-C000-000000000046} from the IClassFactory failed due to the following error: 80010001.