Free Support Forum -

How i know the current page position (Height) in order to insert page break before large image


I"m using aspose to generate word report and i want to know my current position at page ( Height)
in order to insert page break before i insert new title + large image at bottom of page


This message was posted using Page2Forum from Aspose.Words for .NET - Documentation


Thank you for your interest in Aspose.Words. MS Word document is flow document and does not contain any information about its layout into lines and pages. Our Rendering Engine layouts document into lines and pages as MS Word does.

But unfortunately, there is no public API, which allows you to determine where page starts or ends. Also, there is no way to find the position of the particular node on page. Your request has been linked to the appropriate issue. You will be notified as soon as this feature is supported.

I think in your case you can try using “Keep With Next” and “Keep Lines Together” options of paragraph. You can enable/disable these options using Aspose.Words. Please follow the link for more information:

Best regards,

The issues you have found earlier (filed as WORDSNET-2978) have been fixed in this .NET update and this Java update.

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