G
Grenier
Automating a word report. the TOC can take the space of 1 to 3 pages long.
I'm looking for the correct way to insert the TOC on page 3 of the report.
When I build the report, I leave page 3 empty (sectionbreak in top of page)
, set all the toc field in the following pages and once done, I return or
goto page 3 and then add the TOC. The problem that I have is with the footer
of pages containing the TOC. If the TOC has just one page, the footer is OK.
If the TOC has 2 or more pages, the footer is not repeated. (probably because
no section break ?) here's the step I coded...
..DifferentFirstPageHeaderFooter = True
page1 :no footer
page2 :add custum footer, wdHeaderFooterFirstPage, LinkToPrevious=false
page3 : insert TOC, wdHeaderFooterPrimary, LinkToPrevious=true
...suppose toc is 3 pages long
page4 : no footer
page5 : no footer
page6 : add custum footer, wdHeaderFooterFirstPage, LinkToPrevious=false OK
How can I get a footer on page 4 and 5. Can I force footer to appear on each
page instead of each section cause the problem here is that the section is 3
pages long.
Maybe it's not the way to do it ? and hoping I'm clear...
Merci !
I'm looking for the correct way to insert the TOC on page 3 of the report.
When I build the report, I leave page 3 empty (sectionbreak in top of page)
, set all the toc field in the following pages and once done, I return or
goto page 3 and then add the TOC. The problem that I have is with the footer
of pages containing the TOC. If the TOC has just one page, the footer is OK.
If the TOC has 2 or more pages, the footer is not repeated. (probably because
no section break ?) here's the step I coded...
..DifferentFirstPageHeaderFooter = True
page1 :no footer
page2 :add custum footer, wdHeaderFooterFirstPage, LinkToPrevious=false
page3 : insert TOC, wdHeaderFooterPrimary, LinkToPrevious=true
...suppose toc is 3 pages long
page4 : no footer
page5 : no footer
page6 : add custum footer, wdHeaderFooterFirstPage, LinkToPrevious=false OK
How can I get a footer on page 4 and 5. Can I force footer to appear on each
page instead of each section cause the problem here is that the section is 3
pages long.
Maybe it's not the way to do it ? and hoping I'm clear...
Merci !