Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.Cells provides the ability to get the unique ID of a worksheet by using the GetUniqueId() method. The following code snippet demonstrates the use of the GetUniqueId() method to print the unique ID of a worksheet. It uses this sample Excel file (105480213.xlsx).
#include <iostream>
#include "Aspose.Cells.h"
using namespace Aspose::Cells;
int main()
{
Aspose::Cells::Startup();
// Source directory path
U16String srcDir(u"..\\Data\\01_SourceDirectory\\");
// Load source Excel file
Workbook workbook(srcDir + u"Book1.xlsx");
// Access first worksheet
Worksheet worksheet = workbook.GetWorksheets().Get(0);
// Print Unique ID
std::cout << "Unique ID: " << worksheet.GetUniqueId().ToUtf8() << std::endl;
Aspose::Cells::Cleanup();
}
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.