Free Support Forum - aspose.com

Page Autosize

How can I configure that visio autosizes my pages based on the drawing that I add dynamically.

I tried setting the autosize option in my vdx template but it doesn’t work.

Is there a way to force this programmatically?

Hi Vincent,

Please try the following code and feel free to contact us in case you have further comments or questions.

diagram.Pages[0].PageSheet.PageProps.DrawingSizeType.Value = DrawingSizeTypeValue.FitPageDrawContents;

Best Regards,

Hi Muhammed


I tried what you suggested but it doesn’t seem to work.

I’ve have tried setting the option before I begin to add new shapes and also tried setting the option when save the document but both don’t work.

Hi Vincent,

Which version of MS Visio are you using?

Best Regards,

Microsoft Visio Professional 2010 (64bit) (14.0.6112.5000)

Any idea why this doesn’t work?

Hi Vincent,

Sorry, a few more tests are required. I will let you know once it is finished.

Best Regards,

Hi Vincent,

This issue has been logged into our issue tracking system as DIAGRAM-33151. We will let you know as soon as the issue is fixed. Sorry for the inconvenience.

Best Regards,

The issues you have found earlier (filed as DIAGRAM-33151) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.

The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.