public void FillAcrossSheets(XlRange range, XlFillWith type) { object[] paramArray = new object[2]; paramArray[0] = range.COMReference; paramArray[1] = type; InstanceType.InvokeMember("FillAcrossSheets", BindingFlags.InvokeMethod, null, ComReference, paramArray, XlLateBindingApiSettings.XlThreadCulture); }
/// <summary> /// </summary> public void FillAcrossSheets(Range Range, XlFillWith Type = XlFillWith.xlFillWithAll) { _objaParameters = new object[2] { Range._objRange, Type }; _objCharts.GetType().InvokeMember("FillAcrossSheets", BindingFlags.InvokeMethod, null, _objCharts, _objaParameters); }