I have Open a excel file using C#.NET (COM application) and trying to get it's HInstance but it gives me error on 64 bit EXCEL 2010.
Here is my code
objExelApp = new Excel.ApplicationClass();
objWorkbook = objExelApp.Workbooks.Add(misValue);
iHinstance = objExelApp.Hinstance;
objWorksheet = (Excel.Worksheet)(objWorkbook.Worksheets.get_Item(1));
Error : "Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))"
I have compile DLL with X64 but no luck.
Please help me to resolve the issue
Thanks in advance
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)