I'm trying to save a file using EPPlus, but I keep getting an InvalidOperationException on the Save() line.
System.IO.File.Copy(strSource, strNewNotePath, true);
ExcelPackage xlPackage = new ExcelPackage(new FileInfo(strNewNotePath));
xlPackage.Save();
The InnerException says "Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index".
The Excel file has very little in it - just a few drawing items really - rounded rectangles, textboxes, and then two cells with some data in them.
Anyone got any ideas what could be causing this?
Thanks