Hi,
Hi,
Thanks for your posting and using Aspose.Cells.
It is not currently possible to create slicer using Aspose.Cells API nor you can manipulate the existing slicer. However, you can load your source excel file containing your existing slicer with Aspose.Cells API fine.
If you are having a problem loading the excel file with slicer, then please provide it to us, we will look into it and fix the bug.
Please also download and try the latest version: Aspose.Cells for .NET (Latest Version) and see if it makes any difference and resolves this issue of loading excel file with existing slicer.
Hi,
Hi Davinder,
As discussed earlier, Aspose.Cells APIs are currently not capable of creating, manipulating or refreshing the Slicers. However, if the input spreadsheet has a slicer that could be built manually then Aspose.Cells APIs can retain it while saving back the spreadsheet.
I have created a slicer manually in a excel template, attached here.
Hi Davinder,
Thank you for providing the code and the sample spreadsheet.
We have noticed that you are adding a new ListObject on the same location as of an existing ListObject. Due to this reason, the resultant spreadsheet becomes corrupted and the Excel repair procedure removes the contents from table2.xml file to correct the references.
Please modify the code as following to avoid this problem.
C#
//creating table of data
Aspose.Cells.Tables.ListObjectCollection listObjects = wsheet1.ListObjects;
//Instead of adding a new ListObject, resize the existing ListObject to accommodate the newly inserted data
//listObjects.Add(8, 0, wsheet1.Cells.MaxDataRow, wsheet1.Cells.MaxDataColumn, true);
listObjects[0].Resize(8, 0, wsheet1.Cells.MaxDataRow, wsheet1.Cells.MaxDataColumn, true);
Hi,
Ok, problem was the Aspose.cells version. Using 8.5.2.0, it is working fine.
Hi,
Hi,
Hi,
e.g
Sample code:
Workbook workbook = new Workbook(“e:\test2\POC.xlsx”);
workbook.Save(“e:\test2\out1.xlsb”, SaveFormat.Xlsb);
Hi,
Thanks for using Aspose.Cells.
This is to inform you that we have fixed your issue CELLSNET-43921 now. We will soon provide the fix after performing QA and including other enhancements and fixes.
Please note we have fixed the issue of corrupted file. But we do not support slicers in xlsb file.
Hi,
the slicers are missing as we do not support slicers in the XLSB file format.
Hi Amjad,
Hi,
Hi,
Hi
Hi Stephen Jackett,
Has there been any additional update to create/manipulating slicer in Excel?
Hi,
Thanks for your posting and using Aspose.Cells.
We are afraid there is no update for you at this moment regarding this issue. However, we have logged your comment in our database against this issue and requested the product team to provide some fix or ETA for this issue. Once there is some news for you, we will update you asap by posting in this thread.