I need to write some text to the footer in each section of a document. The text may not be the same in each section so I cannot use the LinkToPrevious setting. Essentially what I want is
Dim DocSections As SectionCollection = docOutput.Sections
Dim HeaderOrFooter As HeaderFooter
For Each thisSection As Section In DocSections
HeaderOrFooter = thisSection.HeadersFooters(HeaderFooterType.FooterPrimary)
` write to the section text
Next thisSection
I cannot see how to write to the section. I have seen code that does
builder.MoveToHeaderFooter(typHeaderFooterType)
builder.Write("SomeText")
but this only seems to work on the first section.
what am I missing??
Thanks
john