The new operator, used to dynamically allocate memory for an object, was not specified correctly. (Compiler Error CS1526)
Replace
oXL = new Microsoft.Office.Interop.Excel.application;
with
oXL = new Microsoft.Office.Interop.Excel.application();
this doesn't work
ReplyDeleteHi Can you post the code that throws the error?
ReplyDelete