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

Unable to Generate Excel from a template with Pivot & Filters #1201

Open
potdarpriyanka opened this issue Oct 23, 2023 · 4 comments
Open

Unable to Generate Excel from a template with Pivot & Filters #1201

potdarpriyanka opened this issue Oct 23, 2023 · 4 comments
Labels
bug file_error file format generation/writing issue
Milestone

Comments

@potdarpriyanka
Copy link

potdarpriyanka commented Oct 23, 2023

NPOI Version 2.6.2

File Type - [ ] XLSX

Upload the Excel File

Template.xlsx

Please attach your original Excel File to help us reproduce the issue

Reproduce Steps

I have taken all the logic out of this, simple using a template and creating new excel with it doesn't seem to work
code :

MemoryStream outputStream = new MemoryStream();
using (Stream templateStream = assembly.GetManifestResourceStream(resourceName))
{
IWorkbook workbook = new XSSFWorkbook(templateStream);
workbook.Write(outputStream, true);
outputStream.Position = 0;
}
return File(outputStream, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "GP-Summary.xlsx");

Issue Description

image image

basically similar to #419 but for filters/ slicers

@tonyqus
Copy link
Member

tonyqus commented Oct 24, 2023

#783 #867

@potdarpriyanka
Copy link
Author

potdarpriyanka commented Oct 24, 2023

#783 #867

@tonyqus - is this fixed then?

we've added slicers to filter pivot tables, is that supported? If i remove the slicers, it works but excel is corrupted if i leave them in the template

@tonyqus
Copy link
Member

tonyqus commented Oct 24, 2023

No. These are related PR, which may causes this issue

@potdarpriyanka
Copy link
Author

@tonyqus - are we working on this or have plans to add support for slicers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug file_error file format generation/writing issue
Projects
None yet
Development

No branches or pull requests

2 participants