Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
If you want to associate slicer and pivot table in Excel, you need to right-click slicer and select “Report Connections…” item. In the option list, you can operate on the check box. Similarly, if you want to associate slicer and pivot table using Aspose.Cells Java API programmatically, please use the Slicer.addPivotConnection(PivotTable pivot) method. It will associate slicer and pivot table.
The following sample code loads the sample Excel file that contains an existing slicer. It accesses the Slicer and then associates Slicer and PivotTable. Finally, it saves the workbook as output Excel file.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.