OK, If this has been answered elsewhere, please forgive me and point me in the right direction … .my head is fried!
I need to make sure I am creating the best solution possible using the correct mechanics and whatnot. I can not seem to get my headers and footers to come out correct.
OK, I have built a web application that stores HTML in a database. About 50 HTML “sections” need to be merged into one document. Using Aspose.Words, I can create the document quite nicely. Of course I have some HTML issues, but those are to be expected and I will work around those.
The issue arises when I attempt to add headers, footers, and a watermark (based on the header). Each “section” of the document can have differnet margins and page orientation so I have used section page breaks and section continuous breaks after I do a DocBuilder.InsertHTML. I also need the first two pages (or at least the very first page) to not have a page number as it is a cover page and then a signature page/. I have tried many combinations of inserting and copying the header and footers. At one time each time a new section woudl start, the first page would not have a header, this was due to different first page headers. Once I played with the code some, then my footers started to nest inside themselves. And now, I can not seem to get back to even the first page of the section not showing a header.
The header and watermark only need to appear on a page if the document is in “draft” status. The footer is always supposed to be visible.
Any help would be appreciative!