Free Support Forum - aspose.com

TableOfContents not coming fully

PFA the following example code in Aspose.Words for Java.
And the attached PDF output file.
I am not getting Page1 in the TOC. Page2 is coming with the tables under it in the TOC.
Also, please refer Table13 header in the output.
I would like it to be pushed to next page since the rest of the table data spills over to the next page.

The top-level method to be called is testWordPrint
Please help…

can i get some help please…

i would really appreciate some quick help as i have a release to make…
On point 2) about Table31 one clarification on my need. It is not just adding a hardcoded page break before Table31. Instead, i would like to dynamically decide if a page-break needs to be added or not before Table31 depending on the balance area left on the page to accomodate at-least the TableName, TableHeader and couple of data rows at-least.

Hi Aslam,


Thanks for your inquiry and sorry for the delayed response. The problem occurs because you’re using a very old version of Aspose.Words (10.2.0) on your side; I would suggest you please upgrade to the latest version of Aspose.Words for Java i.e. 13.4.0. You can download it from the following link:
http://www.aspose.com/community/files/72/java-components/aspose.words-for-java/default.aspx

I hope, this helps.

Moreover, please read the following article on How-to: Migrate to Aspose.Words 10.5 or Higher:
http://www.aspose.com/docs/display/wordsjava/How+to++Migrate+to+Aspose.Words+10.5+or+Higher

Best regards,