ピボットテーブルオプションの設定 空白セルに表示する内容を設定する
Contents
[
Hide
]
空のセルを指定の文字列で表示するなど、Aspose.Cells for Node.js via C++を使用してさまざまなピボットテーブルオプションを設定できます。
Microsoft Excelでのピボットテーブルオプションの設定
Microsoft Excelでこのオプションを見つけて設定するには:
- ピボットテーブルを選択し、右クリックします。
- ピボットテーブルオプションを選択します。
- レイアウトと書式タブを選択します。
- 空白のセルに表示する内容オプションを選択し、文字列を指定します。
ピボットテーブルオプションの設定方法 Aspose.Cells for Node.js via C++を使用して
Aspose.Cells for Node.js via C++は、「空白セルに表示する」ピボットテーブルオプションを設定するためのPivotTable.setDisplayNullStringおよびPivotTable.setNullStringプロパティを提供します。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const AsposeCells = require("aspose.cells.node"); | |
//For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET | |
//The path to the documents directory. | |
var dataDir = RunExamples.GetDataDir("."); | |
var wb = new AsposeCells.Workbook(dataDir + "input.xlsx"); | |
var pt = wb.getWorksheets().get(0).getPivotTables().get(0); | |
//Indicating if or not display the empty cell value | |
pt.setDisplayNullString(true); | |
//Indicating the null string | |
pt.setNullString("null"); | |
pt.calculateData(); | |
pt.setRefreshDataOnOpeningFile(false); | |
wb.save(dataDir + "output_out.xlsx"); |