You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I was testing slicer functionality with both tables and pivot tables and noticed that any workbooks created with the wb_save function would always be corrupted. Repairing the workbook would lead to the removal of the slicer objects. I created a minimal reproducible example to limit the process to simply loading the workbook and immediately saving the loaded workbook. However, these steps still did not prevent the corruption from occurring.
Please see below for the input file that contains three tabs. The "data" tab contains the source data, the "Pivot" tab contains the pivot table object with two slicers, and the "Table" tab contains the table object with two slicers on the same fields as the "Pivot" tab.
On workbook repair of the output file, both slicers linked to the pivot table were removed. However, one slicer linked to the table remained.
I would greatly appreciate any consideration for this issue, and please let me know if any additional information would be beneficial.
Thanks again for your development efforts into this package.
The text was updated successfully, but these errors were encountered:
Hi @thdougher , thanks for the report. I have opened a PR #505 could you check if that solves your issue?
Edit: you could try something like remotes::install_github("JanMarvin/openxlsx2#505")
Hello @JanMarvin,
Thanks for the edit as I am still new. I am confirming that no corruption occurred and the slicers remained intact. Thanks for looking into this issue so quickly.
Hello, I was testing slicer functionality with both tables and pivot tables and noticed that any workbooks created with the wb_save function would always be corrupted. Repairing the workbook would lead to the removal of the slicer objects. I created a minimal reproducible example to limit the process to simply loading the workbook and immediately saving the loaded workbook. However, these steps still did not prevent the corruption from occurring.
Please see below for the input file that contains three tabs. The "data" tab contains the source data, the "Pivot" tab contains the pivot table object with two slicers, and the "Table" tab contains the table object with two slicers on the same fields as the "Pivot" tab.
On workbook repair of the output file, both slicers linked to the pivot table were removed. However, one slicer linked to the table remained.
openxlsx2 slicer corruption - input.xlsx
I used the latest github version of the package. Session info is below:
I would greatly appreciate any consideration for this issue, and please let me know if any additional information would be beneficial.
Thanks again for your development efforts into this package.
The text was updated successfully, but these errors were encountered: