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

Free Support Forum - aspose.com

Text box overlapping without creating a new page

Hello,

I have run into a problem where I am writing to a textbox and the text overlaps to a new page, but the new page is not being created. Is there a way to detect that the text is running over to a new page so I can create a new page? Or is there a way to automatically create a new page if the text runs over? Thanks.

Hi Blake,

Thank you for contacting support. It appears as the autosize page option is disabled. Please enable it before calling the Save method of Diagram class as follows:

[.NET, C#]
// use saving options DiagramSaveOptions options = new DiagramSaveOptions(SaveFileFormat.VSDX);

// set Auto fit page property options.AutoFitPageToDrawingContent = true;

// save Visio diagram diagram.Save("c:\\temp\\Output.vsdx", options);

We hope, this helps. Please let us know in case of any ambiguity or questions.