Specify the Language of the Excel File using BuiltIn Document Properties with Node.js via C++
Possible Usage Scenarios
You can change the Language of an Excel file by right-clicking the file and then selecting Properties > Details and then editing the Language field. Please use BuiltInDocumentPropertyCollection.getLanguage() property to change it programmatically using Aspose.Cells for Node.js via C++ APIs.
Specify the Language of the Excel File using BuiltIn Document Properties
The following sample code creates a workbook and changes its built-in document property named language. Please see the output Excel file generated by the code and screenshot that shows the modified Language field by BuiltInDocumentPropertyCollection.getLanguage() property.
Sample Code
const path = require("path");
const AsposeCells = require("aspose.cells.node");
// The path to the documents directory.
const dataDir = path.join(__dirname, "data");
const outputDir = path.join(__dirname, "output");
// Create workbook object.
const wb = new AsposeCells.Workbook();
// Access built-in document property collection.
const bdpc = wb.getBuiltInDocumentProperties();
// Set the language of the Excel file.
bdpc.setLanguage("German, French");
// Save the workbook in xlsx format.
wb.save(path.join(outputDir, "outputSpecifyLanguageOfExcelFileUsingBuiltInDocumentProperties.xlsx"), AsposeCells.SaveFormat.Xlsx);