Headerfooter.linktoprevious


#1

Hello,
I am evaluating this product and would like to know if there is a way to link or unlink a header/footer from the header/footer of the previous section. I have a template that has a tables in both the header and footer and need to change the content of each for each section.
Currently I can achieve this by:

doc.selection.headerfooter.linktoprevious=false

Thank you
Scott


#2

If you want to unlink, you simply need to enter some content into the header or footer. Use DocumentBuilder.MoveToSection, then MoveToHeadeFooter and then other DocumentBuilder methods such as Writeln to insert the text of the header/footer.

I'm not sure, but I also think you can link if you use Section.ClearStory and specify the header or footer to clear. When the header or footer is empty it is linked to previous.

Let me know if that does not work.