How to insert a Header (Having multiple entries) into next page while rendering the same content using DOCX from dynamic template and Next Content will start with new Header

Certified Associate Developer

I am using DOCX from dynamic template and able to generate document having multiple pages (generated dynamically and depends on the size of passing array.)

For each entry I have a header and because of the data length, Header is not coming on top of each page for the same item content.(Required: Header to be displayed on the pages till the length of the content of the item)

How can I make sure that header will always come on Top of every page of same item content and next header will start from next page always with new item content ?

Is there anything we can configure in Dynamic template?

I came across one solution:

But this is again a lengthy process, So is there any other solution that can be tried apart from the screenshot attached?

  Discussion posts and replies are publicly visible