title: update existing workbook using epplus C#
body: <p>I am trying to add new worksheet into existing workbook, code runs fine without any error. But changes are not being updated to the excel file.
  Here is my code</p>
  
  <pre><code>string path = "C:\\TestFileSave\\ABC.xlsx";
  FileInfo filePath = new FileInfo(path);
  if (File.Exists(path)) 
  {
      using(ExcelPackage p = new ExcelPackage()) 
      {
          using(stream = new FileStream(path, FileMode.Open, FileAccess.ReadWrite)) 
          {
              p.Load(stream);
              ExcelWorksheet ws = p.Workbook.Worksheets.Add(wsName + wsNumber.ToString());
              ws.Cells[1, 1].Value = wsName;
              ws.Cells[1, 1].Style.Fill.PatternType = ExcelFillStyle.Solid;
              ws.Cells[1, 1].Style.Fill.BackgroundColor.SetColor(Color.FromArgb(184, 204, 228));
              ws.Cells[1, 1].Style.Font.Bold = true;
              p.Save();
          }
      }
  }
  </code></pre>