title: How to add one excelworksheet into other workbook using EPPlus in C#?
body: <pre><code>  private static ExcelPackage MergeExcelPackages(ExcelPackage aExcelPackage,
                  ExcelPackage bExcelPackage)
       {
       var excelPackage = new ExcelPackage();
       excelPackage.Workbook.Worksheets.Add("AInfo", aExcelPackage.Workbook.Worksheets[1]);
       excelPackage.Workbook.Worksheets.Add("BInfo", bExcelPackage.Workbook.Worksheets[1]);
  
       return excelPackage;
       }
  </code></pre>
  
  <p>The above code is working in EPPlus 3.1.3.3 but not in vesion 4.0.4
  It's throwing following error:</p>
  
  <pre><code>System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
     at System.Collections.Generic.List`1.get_Item(Int32 index)
     at OfficeOpenXml.ExcelStyleCollection`1.get_Item(Int32 PositionID)
     at OfficeOpenXml.Style.ExcelStyle.get_XfId()
     at OfficeOpenXml.ExcelStyles.CreateNamedStyle(String name, ExcelStyle Template)
     at OfficeOpenXml.ExcelStyles.CloneStyle(ExcelStyles style, Int32 styleID, Boolean isNamedStyle, Boolean allwaysAdd)
     at OfficeOpenXml.ExcelStyles.CloneStyle(ExcelStyles style, Int32 styleID)
     at OfficeOpenXml.ExcelWorksheets.CloneCells(ExcelWorksheet Copy, ExcelWorksheet added)
     at OfficeOpenXml.ExcelWorksheets.Add(String Name, ExcelWorksheet Copy)
  </code></pre>