レポート フィルター ページの表示オプション

レポート フィルター ページの表示オプション

Excel では、ピボット テーブルの作成、レポート フィルターの追加、および [レポート フィルター ページの表示] オプションの有効化がサポートされています。 Aspose.Cells は、作成されたピボット テーブルで [レポート フィルター ページの表示] オプションを有効にするこの機能もサポートしています。以下は、Excel の [レポート フィルター ページの表示] オプションを示す画面です。

todo:画像_代替_文章

サンプル ソース ファイルと出力ファイルは、サンプル コードをテストするために、ここからダウンロードできます。

 ソース Excel ファイル 

出力 Excel ファイル

// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET
// Load template file
Workbook wb = new Workbook(sourceDir + "samplePivotTable.xlsx");
// Get first pivot table in the worksheet
PivotTable pt = wb.Worksheets[1].PivotTables[0];
// Set pivot field
pt.ShowReportFilterPage(pt.PageFields[0]);
// Set position index for showing report filter pages
pt.ShowReportFilterPageByIndex(pt.PageFields[0].Position);
// Set the page field name
pt.ShowReportFilterPageByName(pt.PageFields[0].Name);
// Save the output file
wb.Save(outputDir + "outputSamplePivotTable.xlsx");