Quantcast
Channel: EPPlus Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 2262

Commented Unassigned: Null exception trying to copy a worksheet. [15214]

$
0
0
_xlPackage.Workbook.Worksheets.Add("TedsWizard", _xlPackage.Workbook.Worksheets["Wizard"]);

or

_xlPackage.Workbook.Worksheets.Copy("Wizard", "TedsWizard");

All I get is a null reference error
System.NullReferenceException was unhandled by user code
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=EPPlus
StackTrace:
at OfficeOpenXml.ExcelWorksheets.Add(String Name, ExcelWorksheet Copy)
at OfficeOpenXml.ExcelWorksheets.Copy(String Name, String NewName)


I can add values to the "Wizard" Worksheet but I can't copy it
Comments: Is there a workaround for this issue?

Viewing all articles
Browse latest Browse all 2262

Trending Articles