I am hoping you might be able to provide some insight into a problem I am running into where adding a Sub-Document via Aspose, I end up loosing the Page Headers of the Sub-Document.
We are using the Linq engine, and are dynamically adding documents using the <<doc>> tag.
The Sub Document has some page headers defined (one for the first page, another for all subsequent pages).
The Master Document does not have any page headers.
When the Sub Document is added to the Master Template, it should retain all of its page headers. The rest of the Master Template would not have a Page Header.
When I generate the Sub Document on it’s own, everything looks good.
When I generate the Master Document, there are no page headers.
I have seen comments on setting the “link to previous” in the header section, but I am not using the Aspose code (I am using the Linq reporting engine), and no matter how I set things in the Master Document, I can’t seem to get things to work correctly.
I have a sample project created, which I will try to zip and include in this support ticket.
In here, there is a Templates folder. Within there, you will see the Master Document, Sub Document, and the Expected Output document.
You will note the Expected Output shows how I would hope the headers would look.
Thank you again for your help.AsposeTemplateGeneration.zip (5.3 MB)