Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

Commented Unassigned: Pivot Tables Values Problem [9088]

$
0
0
Based on the example [Pivot Tables](https://closedxml.codeplex.com/wikipage?title=Pivot%20Table%20example) , do the following steps to reproduce the problem

Excellent example . It works perfect, but if you add more than one value will have a problem . Here I leave an example to reproduce the problem . Suppose Pastry class has one more property called "Amount" int

Step 1. Add two values

```
// The values ​​in our table will come from the " NumberOfOrders " field
// The default setting is a full calculation of each row / column
pt.Values.Add ("NumberOfOrders");

// Another value ( THIS IS THE ONE THAT CAUSE THE PROBLEM )
pt.Values.Add ("Amount" ) ;

```


Step 2. Save the excel file

Step 3. Open the excel file , and throw the following message

We found a problem with Content ' Patry.xlsx ' . Do you want to try to recover as much content as possible ? If trusts origin of this book , please click yes .

Click yes, and I'll get the following message :

Removed Feature: PivotTable report from / xl / PivotTables / pivotTable.xml part ( PivotTable view)
Records removed : book Properties / xl / workbook.xml part ( Book)


Step 4. Final result , the pivot table is not generated

aTTACH project C# for reproduce problem.

Please expect your help to solve this problem .. thank you very much
Comments: ** Comment from web user: estyfen **

It has not yet been fixed. Finally I decided to explain to my clients, they must manually add the columns to the dynamic table to complete. :)


Viewing all articles
Browse latest Browse all 1877

Trending Articles



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