Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Aspose.Cells provides the OleObject.GetClassIdentifier() property which you can use to get or set the class identifier of embedded OLE objects. OLE Object Class Identifiers are actually GUIDs, i.e., Globally Unique Identifiers. GUIDs are always 16 bytes long, therefore class identifiers are also 16 bytes long. They are often found inside the Windows Registry and provide information to the host application about how to open embedded OLE objects containing various embedded resources inside the client application.
The following screenshot shows the OLE Object Class Identifier, i.e., GUID, which has been read from the sample excel file containing the embedded PowerPoint OLE object.

Please see the following sample code executed with the sample excel file and its console output which prints the Class Identifier of the OLE Object, i.e., GUID. The printed GUID is exactly the same as shown inside the screenshot.
#include <iostream>
#include "Aspose.Cells.h"
#include <guiddef.h>
using namespace Aspose::Cells;
using namespace Aspose::Cells::Drawing;
int main()
{
Aspose::Cells::Startup();
U16String srcDir(u"..\\Data\\01_SourceDirectory\\");
Workbook wb(srcDir + u"sample.xls");
Worksheet ws = wb.GetWorksheets().Get(0);
OleObject oleObj = ws.GetOleObjects().Get(0);
Vector<uint8_t> classIdentifier = oleObj.GetClassIdentifier();
GUID guid;
memcpy(&guid, classIdentifier.GetData(), sizeof(GUID));
char guidStr[39];
snprintf(guidStr, sizeof(guidStr), "{%08X-%04X-%04X-%02X%02X-%02X%02X%02X%02X}",
guid.Data1, guid.Data2, guid.Data3,
guid.Data4[0], guid.Data4[1], guid.Data4[2], guid.Data4[3],
guid.Data4[4], guid.Data4[5], guid.Data4[6], guid.Data4[7]);
std::cout << guidStr << std::endl;
Aspose::Cells::Cleanup();
}
This is the console output of the above sample code when executed with the sample excel file.
DC020317-E6E2-4A62-B9FA-B3EFE16626F4
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.