Free Support Forum - aspose.com

Problems with SetOleSize()

Hi,

I am populating a worksheet with data then adding a new chart sheet and then streaming the workbook into an Aspose.Slides OleObjectFrame. I have been trying to use the Worksheets.SetOleSize() method to properly scale the workbook object to the width/height requirements of the chart, but the method does not seem to have any effect when there is a chart sheet present. Is this behaviour expected?

Thanks.

Shaun

Hi Shaun,

After checking this issue in the ppt, we find if the first sheet is chart, the olesize will not effect.

It seems that it's the behaviour of PPT.

When the first sheet is not chart sheet , if you click the chart sheet,the ole size setting will not effect too.

Could you check how to set the ole size if the first sheet is chart sheet in PPT?