Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.Cells for Node.js via C++ provides the ability to get the unique ID of a worksheet by using the Worksheet.getUniqueId() property. The following code snippet demonstrates the use of the Worksheet.getUniqueId() property to print the unique ID of a worksheet. The following code snippet uses this sample Excel file.
const path = require("path");
const AsposeCells = require("aspose.cells.node");
// The path to the documents directory.
const sourceDir = path.join(__dirname, "data");
// Load source Excel file
const workbook = new AsposeCells.Workbook(path.join(sourceDir, "Book1.xlsx"));
// Access first worksheet
const worksheet = workbook.getWorksheets().get(0);
// Print Unique Id
console.log("Unique Id: " + worksheet.getUniqueId());
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.