Skip to content
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

Pivot table changes when you paste data elsewhere #2293

Open
3 of 6 tasks
vladimirrb opened this issue Feb 9, 2024 · 0 comments
Open
3 of 6 tasks

Pivot table changes when you paste data elsewhere #2293

vladimirrb opened this issue Feb 9, 2024 · 0 comments

Comments

@vladimirrb
Copy link

vladimirrb commented Feb 9, 2024

Read and complete the full issue template

Do not randomly delete sections. They are here for a reason.

Do you want to request a feature or report a bug?

  • Bug
  • Feature
  • Question

Did you test against the latest CI build?

  • Yes
  • No

If you answered No, please test with the latest development build first.

Version of ClosedXML

e.g. 0.102.2

What is the current behavior?

The workbook contains a pivot table. When I insert data into any cell of any sheet of this workbook, the name of the first column of the pivot table changes, and the filter buttons for the remaining columns disappear.

What is the expected behavior or new feature?

A pivot table should not change when data is not inserted into the data source range of that pivot table

Is this a regression from the previous version?

No

Reproducibility

This is an important section. Read it carefully. Failure to do so will cause a 'RTFM' comment.

Without a code sample, it is unlikely that your issue will get attention. Don't be lazy. Do the effort and assist the developers to reproduce your problem. Code samples should be minimal complete and verifiable. Sample spreadsheets should be attached whenever applicable. Remove sensitive information.

Code to reproduce problem:

public void Main()
{
            string templatePath = @"PivotTest.xlsx";
            string destPath = @"PivotTestChanged.xltx";

            var wb = new XLWorkbook(templatePath);
            var ws = wb.Worksheet("sheet3");            
            ws.Cell(2, 9).Value = "TEST!!";

            wb.SaveAs(destPath);
            Process.Start(destPath);      
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant