Headers & Footers
the headers/Footers are messy. Because we are pasting in, we only have one go at them,
so only one paste per header/Footer. Also the order is VERY important.
1. Add general document header
2. Set the DifferentFirstPageHeaderFooter property. Note that if we set this before step 1, it gets reset to 0/false.
3. Add the 1st page header
Add the general Header and footer, and the general page numbers
PasteData(objDocument, strCaseEndHeader, modMain.ePasteLocationType.ePasteHeader)
PasteData(objDocument, strConfidentialText, modMain.ePasteLocationType.ePasteFooter)
objDocument = AddPageNumbers(objDocument, Word.WdSeekView.wdSeekCurrentPageFooter)
now set the property and add the 1st page header and footers and the 1st page page numbers
objDocument.PageSetup.DifferentFirstPageHeaderFooter = -1
PasteData(objDocument, strCaseEndHeader1stPage, modMain.ePasteLocationType.ePasteHeader1stPage)
PasteData(objDocument, strConfidentialText, modMain.ePasteLocationType.ePasteFooter1stPage)