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.
@abrahamlauer
I believe that this is relating to Word settings and not to Alteryx as you can see that the PDFs i generated correctly while the Word is not.
In Word you can define if the header is copied from page to page or will be different and if I'm not wrong the default setting that the header is the same and that is why you are getting only Client 1 as a header.
Maybe it will be better instead of setting a header setting a title with the client name.
@OTrieger I think you are right about the header options in Word. Any ideas on the "headers not appearing on a single page" issue? I think if I could get that to work consistently, I wouldn't need dynamic headers across different pages, which would render Problem 2 obsolete for my use case.
@abrahamlauer
Have you tried to set the Layout Tool, Orientation: Vertical with Section Breaks?
@OTrieger I just tried adding that tool both before and after I make my header text - neither configuration resulted in different behavior.
User | Count |
---|---|
106 | |
82 | |
70 | |
54 | |
40 |