I have a DOTX template where I've inserted multiple holes in the body of the template that I've been able to successfully access and append to programmatically using the DOM API but I have not had the same luck with holes within the header of the template.
I've been attempting to access the headers using slreportgen.report.Report.CurrentPageLayout.PageHeaders. This results in a DOXPageHeader with the following properties:
DOCXPageHeader with properties:
Children: [1×4 mlreportgen.dom.TemplateText]
In the template, I've inserted 2 holes in the header but on the output above, it appears to ignore them and go straight to #end#.
The body of my template is broken up into the following holes:
I've noticed that under hole #sect3#, its PageHeader actually starts at hole #start#, but when I move to the next hole, it goes to #end#.
I have also attempted the few examples I've found and also have not been successful appending the a header programmatically...
In summary, the issues I'm having is accessing the holes I've inserted into my DOTX template file.