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

Commented Unassigned: Error while copying worksheet [15020]

$
0
0
hi,
i am trying to copy worksheet from one package to another, the copy was successful but when i open the new file i get message that says that excel found unreadable content in the new file and ask me if i want to recover, the recover fix the problem but i still need to avoid this message.
here is my code:
```
using (ExcelPackage pck = new ExcelPackage(ConfigFile))
{
using (ExcelPackage NewPackage = new ExcelPackage(NewFile))
{
ExcelWorksheet PreSheet = pck.Workbook.Worksheets["Pre"];
ExcelWorksheet NewSheet = NewPackage.Workbook.Worksheets.Add("New", PreSheet);
NewPackage.Save();
}
}
```
how can i fix this issue?
thanks.
Comments: I'm pretty sure it all depends on what the actual underlying problem is. I'm sure that without example files that have the problem it would be impossible to magically infer what the problem might be.

Viewing all articles
Browse latest Browse all 2262

Trending Articles