Get or Set the Class Identifier of the Embedded OLE Object

Possible Usage Scenarios

Aspose.Cells provides the OleObject.ClassIdentifier property which you can use to get or set the class identifier of an embedded OLE object. OLE object class identifiers are actually GUIDs, i.e., globally unique identifiers. A GUID is 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 an embedded OLE object containing various embedded resources inside the client application.

Get or Set the Class Identifier of the Embedded OLE Object

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.

todo:image_alt_text

Sample Code

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 in the screenshot.

Console Output

This is the console output of the above sample code when executed with the sample Excel file.

DC020317-E6E2-4A62-B9FA-B3EFE16626F4