EPPlus - copy worksheet from template to another excelpackage doesnt work (C#)
问题 I'm having a DataSet filled with different DataTables SQL-Results. Some of the DataTables are connected with a Excel-Template-File. So in the end in want to have an excelfile with a mixture of new worksheets and copied worksheets from some template. That's why my code looks like this: public void CopyResultToExcelFileWithTemplate(DataSet sourceResult, string exportFilePath, string sourceName, string templateExcelFilePath, string sheetName = null) { var excelFile = new FileInfo(exportFilePath)