Node.js経由のC++を使ったワークブックの数式計算モード設定

Contents
[ ]

Microsoft Excelでの式計算モードを設定するには:

  1. 、次に計算オプションを選択します。
    1つのオプションを選択します。

Aspose.Cells for Node.js via C++では、FormulaSettings.getCalculationMode()モードのプロパティを使って数式計算モードを設定することもできます。これには、次の値のいずれかを持つCalcModeType列挙体を指定します。

  • CalcModeType.Automatic
  • CalcModeType.AutomaticExceptTable
  • CalcModeType.Manual
const path = require("path");
const AsposeCells = require("aspose.cells.node");

// The path to the documents directory.
const dataDir = path.join(__dirname, "data");
// Create a workbook
const workbook = new AsposeCells.Workbook();

// Set the Formula Calculation Mode to Manual
workbook.getSettings().getFormulaSettings().setCalculationMode(AsposeCells.CalcModeType.Manual);

// Save the workbook
workbook.save(path.join(dataDir, "output_out.xlsx"), AsposeCells.SaveFormat.Xlsx);