I'm having trouble with dynamic headers when outputting to docx files. I am creating a new field with the ReportText tool, then in my Render I select that field as the header.
Problem 1: Headers do not appear if the document is only 1 page.
The header appears for GroupedLongReportClient1.docx but does not appear for GroupedShortReportClient1.docx. The only difference is that the long report has three iterations of the same graph, thus spanning 3 pages. If I output to pdf, this issue goes away.
Problem 2: For longer reports, headers are incorrect.
Look at ShortReport.docx. The header should be dynamic and match the chart title on each page, but both pages have "Client 2" in the header.
Again, if I output to pdf, this issue goes away.
My use case: I need to output to docx and have the header show up whether the report is 1 page or 5 pages. The header will be the same for the entire report.
Again, this works exactly as expected (and desired) when outputting to pdf. It is when I output to docx that I run into the issues.
Thanks.
Edit: scaled down to Problem 1. Problem 2 is no longer needed for my use-case.