Docxtable paragraph settings issue



  • I'm working on a docx recipe template which uses a docxtable. Once this table becomes long enough to continue on the next page, the whole table moves to the next page, leaving the initial page mostly blank.
    I've determined this to be caused by the paragraph settings in word: Select some text, right click > Paragraph, then go to the 'Line and page breaks' tab, there uncheck 'Keep with next', 'Keep lines together' and 'Page breaks before'.
    If I apply this setting to the docx file generated by the jsreport report, the table is fixed and starts on the first page.

    However I tried applying this to the entire template document, but still the generated report seems to reset this setting somehow.

    I made a basic example on this playground: https://playground.jsreport.net/w/AlexGoris-KasparSolutions/X~chLH89

    Does anyone have any hints to how I can keep the table from starting on the 2nd page?


  • administrators

    If I apply this setting to the docx file generated by the jsreport report, the table is fixed and starts on the first page.

    i've tried to follow these steps using the output docx of your playground, but i don't get the same result as you, the table always stays at the second page, any clue if there is another way to do it?

    GIF that shows what i am doing: https://jumpshare.com/s/YfZouzTWwR03XfeRArCK


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.