AppendAsSection Problem

  • In the working code example below I expect that the header and footer on the second document (wp2) shows with the text "Header 2" and "Footer 2". Instead the header and footer from the first document (wp1) is copied to wp2 even thought you can see in my code that the wp2 is processed with a different header and footer and different text. Am i missing something simple with the AppendAsSection feature? I need to create many dynamic documents, build them into 1 and then display all pages as 1 document to the user. I need to be able to have different text in the header and footer with different formatting on each page(s).