Create Shared Workbook with Aspose.Cells for Node.js via C++

Possible Usage Scenarios

Microsoft Excel allows you to share the workbook as shown in the following screenshot. When you share the workbook, more than one user can edit the workbook on the network. Aspose.Cells for Node.js via C++ enables you to create a shared workbook with the WorkbookSettings.getShared() property.

todo:image_alt_text

Create Shared Workbook with Aspose.Cells

The following sample code creates a shared workbook by setting the WorkbookSettings.getShared() property as true. When you open the output Excel file in Microsoft Excel, you will see Shared with the output workbook name as shown in this screenshot.

todo:image_alt_text

Sample Code

const AsposeCells = require("aspose.cells.node");
const path = require("path");

// The path to the documents directory.
const dataDir = path.join(__dirname, "data");

// Create Workbook object
const wb = new AsposeCells.Workbook();

// Share the Workbook
wb.getSettings().setShared(true);

// Save the Shared Workbook
wb.save("outputSharedWorkbook.xlsx");