A
Amrish
Hi, I am generating the TOC of a document using C# by pointing the Range to
the BookMark which i had placed manually on the start of page2. But if my TOC
fills only half the page, then actual contents start fromt he very same page
below the TOC. Is there any way to check if the TOC and actual contents are
present in the same page and if so can we manually include a Page Break?
Could it be Something like this? If so is there a syntax to get the page
number of the selection?
If( PageNumberOf(TOC) == PageNumberOf(Actual Document Contents))
{
Insert Manual Page Break;
}
Or is there any other way to handle this?
-Amrish
the BookMark which i had placed manually on the start of page2. But if my TOC
fills only half the page, then actual contents start fromt he very same page
below the TOC. Is there any way to check if the TOC and actual contents are
present in the same page and if so can we manually include a Page Break?
Could it be Something like this? If so is there a syntax to get the page
number of the selection?
If( PageNumberOf(TOC) == PageNumberOf(Actual Document Contents))
{
Insert Manual Page Break;
}
Or is there any other way to handle this?
-Amrish