We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Is there a way to get the size of the OleFormat object in bytes

Hi. I am using Words, Cells, and Slides to work with embedded OLE objects. In the Cells and Slides APIs, the raw object data is exposed as a byte array that is very easy to get the length of (ObjectData.Length). Is there a way to do that with the Words API?

Thanks for your request. You can use the following code to get size of OLE object.

MemoryStream strm = new MemoryStream();
long length = strm.Length;

I hope that it will help you.
Best regards.