I’m trying to get the
xlGeneralFormatName
From Excel, like this:
Excel.Application _excelApp;
Excel.Workbook _excelWB;
_excelApp = new Excel.Application();
_excelWB = _excelApp.Workbooks.Add();
object o = _excelWB.Application.International(Excel.XlApplicationInternational.xlGeneralFormatName);
but I’m getting a Cannot invoke a non-delegate type error on the last line of code.
What am I doing wrong?
Thanks very much
Internationalis a property, not a method. See _Application.International Property.Perhaps you are new to C#? You get a member of an indexed property using square brackets, not parenthesis: