When using a pivot table with 3 pivot columns, exporting to pdf fails with an error in the
PdfGridRow.prototype.measureHeight function on the line:
this.grid.rows.getRow(rowin + j + 1).cells.getCell(cellIn).hasRowSpan = true;
Here is the sandbox example:
https://codesandbox.io/s/syncfusion-pivot-3-columns-556uu?file=/src/components/Pivot.vue
Please note also that since version 19.3, pdf export also fails with two pivot columns. This is the stack trace:
TypeError: Cannot read properties of undefined (reading 'column')
Render.getValidHeader | @ | render.js?5571:1803 | |
| Render.pdfColumnEvent | @ | render.js?5571:1824 | |
| Render.pdfHeaderQueryCellInfo | @ | render.js?5571:250 | |
| Observer.notify | @ | observer.js?6607:101 | |
| Base.trigger | @ | base.js?54ff:190 | |
| applyTextAndSpan | @ | pdf-export.js?2c17:481 | |
| recuHeader | @ | pdf-export.js?2c17:509 | |
| recuHeader | @ | pdf-export.js?2c17:502 | |
| PdfExport.processGridHeaders | @ | pdf-export.js?2c17:514 | |
| PdfExport.processGridExport | @ | pdf-export.js?2c17:242 | |
| eval | @ | pdf-export.js?2c17:171 | |
| PdfExport.processExport | @ | pdf-export.js?2c17:170 | |
| eval | @ | pdf-export.js?2c17:150 |
Attached is a demo.
|
Query |
Comments |
|
When using a pivot table with 3 pivot columns, exporting to pdf fails with an error in the
PdfGridRow.prototype.measureHeight function on the line:
this.grid.rows.getRow(rowin + j + 1).cells.getCell(cellIn).hasRowSpan = true;
Here is the sandbox example:
|
We can reproduce the reported behavior at our end. We have confirmed this is an issue from our side and logged a bug for the same as “Pdf export is not working when stacked header have inner stacked header”. Thank you for taking the time to report this issue and helping us improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technical feasibility and Product Development Life Cycle) and will include the defect fix in our upcoming patch release which will be rolled out on Dec 1st, 2021. You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.
|
|
Please note also that since version 19.3, pdf export also fails with two pivot columns. This is the stack trace:
TypeError: Cannot read properties of undefined (reading 'column') |
This is a known issue and we have already fixed this issue. It will be included in our upcoming weekly patch release which is expected to be rolled out next week. |
Thank you Manikandan.
I also just observed that PDF export has the same error with even 1 pivot column if there are multiple aggregate column values. I assume that's included in the fix you noted is coming out next week.
The error is in Render.prototype.getValidHeader on the line:
if (!isNullOrUndefined(args.gridCell.column.customAttributes) && this.parent.dataSourceSettings.columns.length === 0 && this.parent.dataSourceSettings.valueAxis === 'column' &&
Thank you Manikandan.
Thank you Manikandan. Yes I've tested that it does work now with 2 levels of columns but not 3. And you've already noted that the fix for 3 columns is coming next week. Take care.
Hi, Has this issue been fixed? Thanks.
Thanks very much Manikandan