Hi,
I am try to create excel formula.
I am using following code.
ExcelEngine oengine = new ExcelEngine();
IApplication oApp = oengine.Excel;
oApp.DefaultVersion = ExcelVersion.Excel2007;
IWorkbook oWorkbook = oApp.Workbooks.Create(1);
IWorksheets osheets = oWorkbook.Worksheets;
IWorksheet osheet = osheets .Worksheets[0];
IRange oRange = osheet .Range["A2:A25"];
oRange.FormulaR1C1 = "R[-1]C+1";
IRange oRange = osheet .Range["L4"];
oRange.FormulaR1C1 = "R[-1]C+1";
A2 to A25 cell value is right but L4 to L13 cell show null value using this method.
How to create shared formula from A2 to A25 cell range and L4 to L13 cell range with single Technique.
Excel file is attach with mail.
Attachment:
normaldatacheck_608d184e.rar