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

Free Support Forum - aspose.com

How to Aspose.Words detect Page Break


How aspose.words detect page break .

My documents looks like this.



here i am counting lines and when line counter exceed certain lines then i am inserting page break , here i am receiving sometimes page overflow problems.


Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. There is no way to detect when page starts using Aspose.Words. Why do you need detect Page Break? Have you read my answer here?

Also please attach the document that demonstrates the problem.

Best regards.

I want to use my own customized header because Predefined header faded entire text of header when document open and that gives improper presentation of documents.

I am able to do this but problem is when table row height increased due to wrap text that times this fails else page controlling using my own way is perfectly working.


Hi<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Could you please attach your document and provide me your code? I will reproduce the problem and try to help you.

Best regards.