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

Commented Unassigned: Excel crashes after Open and save as [15566]

$
0
0
after this simple piece of code the excel to load this file.

```
[TestClass]
public class UnitTest1
{

private string TemplateFileName = @".\templates\TestWithPivotTablePointingToExcelTableForData.xlsx";
private string ExportFileName = @".\templates\TestWithPivotTablePointingToExcelTableForData_Export.xlsx";

[TestMethod]
public void TestWithPivotTablePointingToExcelTableForData()
{
using (ExcelPackage excelpackage = new ExcelPackage(new FileInfo(TemplateFileName), true))
{
excelpackage.SaveAs(new FileInfo(ExportFileName));
}

}
}
```

as far as i can tell it occures when there is a pivottable in the sheet which points to an exceltable as datasource.

In the attachments i've added an example file.

excel error
Faulting application name: EXCEL.EXE, version: 16.0.4456.1003, time stamp: 0x58139d4f
Faulting module name: EXCEL.EXE, version: 16.0.4456.1003, time stamp: 0x58139d4f
Exception code: 0xc0000005
Fault offset: 0x01134c41
Faulting process id: 0x3184
Faulting application start time: 0x01d2507cb589c304
Faulting application path: C:\Program Files (x86)\Microsoft Office\Office16\EXCEL.EXE
Faulting module path: C:\Program Files (x86)\Microsoft Office\Office16\EXCEL.EXE
Report Id: f3cbc25f-bc6f-11e6-82c7-90e6ba1a467a
Faulting package full name:
Faulting package-relative application ID:
Comments: Fixed in changeset 33392c36678d

Viewing all articles
Browse latest Browse all 2262

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>