Skip to main content
nainak199198
October 18, 2024
Question

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

  • October 18, 2024
  • 1 reply
  • 0 views

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?

    1 reply

    prasantap0900
    October 21, 2024

    As [mention:f5e81b8502fa4e77ad12697686a4fc56:e9ed411860ed4f2ba0265705b8793d05] mentioned, is a good solution. Though page can be lengthy, you can show all details. 

    Or you can generate header for both pages in html format and configure them accordingly.