I am able to set cell values using EPPlus:
var template = new FileInfo(Server.MapPath("~/App_Data/my_template.xlsx"));
var pck = new ExcelPackage(template);
var ws = pck.Workbook.Worksheets.First();
ws.Cells[15, 4].Value = 66;
ws.Cells["B1"].Value = 55;
Instead of addressing the target cell by its coordinates I would like to use a named cell/variable "profits".
ws.Range("profits").Value = 66;
However, EPPlus does not support ws.Range(...).
=> Is it nevertheless possible to do so? How would I write an extension method that provides the wanted functionality?
Related articles/questions:
a) Doc for EPPlus:
b) How to use named cells/variables in Excel:
https://www.computerhope.com/issues/ch000704.htm
What's the RIGHT way to reference named cells in Excel 2013 VBA? (I know I'm messing this up)
c) Libraries for creating Excel Files with C#