title: How to write to excel many times using one object of EPPLUS in C#
body: <p>Refer to some EPPLUS sample code, there are just creating one epplus object for one activity.</p>
  
  <p>ex</p>
  
  <pre><code>using (ExcelPackage package = new ExcelPackage(newFile))
  {...
  // activity
  }
  </code></pre>
  
  <p>it means that after activity is finished, object is disposed automatically.
  and for the next, object will be created again for doing activity again.
  And i want to create just one EPPLUS object for many times of activity, i want to create one EPPLUS object can be used many times, not using "using" statement. </p>
  
  <p>this is my code</p>
  
  <pre><code>public partial class FMain : Form
      {
          ...
          ExcelPackage pack; 
          FileInfo InfoPathFile;
          public StringPathFile = ""      
          ...
      public FMain()
          {
          ...
          }
      private void NewDialog_FileOk(object sender, CancelEventArgs e)
          {
              if(pack != null)
                  pack.Dispose();
  
              StringPathFile = NewDialog.FileName;
  
              InfoPathFile = new FileInfo(StringPathFile);
              pack = new ExcelPackage(InfoPathFile);
              ...
          }
      private void SaveData(float[] Sens, string tt, string dd)
          {
              var ExSheet = pack.Workbook.Worksheets["Data"];
  
              ExSheet.Cells["A" + rowExcel].Value = Numb;
              ExSheet.Cells["B" + rowExcel].Value = Sens[0];
              ExSheet.Cells["C" + rowExcel].Value = Sens[1];
              ExSheet.Cells["D" + rowExcel].Value = Sens[2];
              ExSheet.Cells["E" + rowExcel].Value = Sens[3];
              ExSheet.Cells["F" + rowExcel].Value = tt;
              ExSheet.Cells["G" + rowExcel].Value = dd;
  
  
              //pack.SaveAs(InfoPathFile);
              pack.Save();
          }
  </code></pre>
  
  <p>I want to write to excel many times, using just one EPPLUS object, i dont want to create epplus object every time i do an activity. Using my code, i can just write once to excel file, and second writing process is failed. 
  Can i do that?</p>