Free Support Forum -

Setting Presentation Width/Height

I can’t see anywhere in the Presentation class a method for setting the width & height of a presentation (such as in MS PowerPoint’s PageSetup.SlideWidth method).

Can this be done in ASPOSE. If not, will it be?


Presentation.SlideSize and Presentation.SlideSizeType properties. But it’s read-only.

Thanks for that.
I had found those ones. Ideally I need to be able to alter the dimensions of the the presentation. I am currently doing that with the PowerPoint VBA API.

Are there any plans to add this functionality? My alternative is to ship about 20-30 different ppt files to allow for the variations I need, which is obviously not ideal!


Dear Shane,

Will try to implement it on the next week.

Fantastic! Thanks for that Alexey.
That’s service!


Dear Shane,

We have added possibility to change size of a slides.
Please check 1.9.4 hot fix.

Hi there,

I am trying to set the size of the slide, but can’t get it to work.
I have tried the following (C#):

oPres.SlideSize.Width = intPageWidth;
oPres.SlideSize.Height = intPageHeight;

and get this error "Cannot modify the return value of ‘Aspose.PowerPoint.Presentation.SlideSize’ because it is not a variable"

Could you please let me know what the correct syntax is?


oPres.SlideSize = new System.Drawing.Size(intPageWidth, intPageHeight);