-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The generated file does not open in Excel #82
Comments
When you say the file doesn't open in Excel, do you mean that Excel complains that the file is corrupt? |
Yes |
I noticed that the problem does not occur if the PivotTable data is empty. From this I can assume that there may be an error related to the pivotCacheDefinition section. |
I found. In pivotCacheRecords1.xml, the "Tax rate" field contains no data. If I add data to this field, the error disappears.
Correction:
The "Tax rate" field participates in the PivotTable as a ColumnField. Scenario to reproduce:
|
In fact, there are two problems. This solves only one. Solution for the second problem until has not yet found. |
Found the second problem, because of which the file opens with an error. |
The reason that in the pivotCacheDefinition the TaxRate field was not filled in was that the file was generated based on a template in which two summary tables are constructed from data from the same data table. In this case Excel creates one pivotCacheDefinition file, and ClosedXML while caches the last Pivot overwrites the cache for the first Pivot. |
Closed by ClosedXML/ClosedXML#1196 |
I am working on introducing Pivot styles. For testing tests are used PivotTests.Simple. When performing the specified test with the tPivot5_Static.xlsx template, a file is generated that does not open in Excel.
Commit #81 compiled with ClosedXML ClosedXML/ClosedXML#1189
The text was updated successfully, but these errors were encountered: