HTML table row splitting over to next page



  • I have a problem with the table row sometimes splitting over to the next page.

    Please refer to the example

    0_1667038379086_upload-8a1a6bd5-cd26-4771-8a78-e571a2ab4c8f

    Please, suggest any workaround.

    Thanks


  • administrators

    hi! the printing of html tables mostly work fine, but it does not for repeatedly tables put together like you are generating.

    I would avoid generating multiple tables like that, and instead just repeat tbody elements, the reason for this is the layout that chromes uses when printing seems to integrate better when using single table, and prevents content to be split between pages in wrong way (one part in one page and the other in next page).

    i changed your html to not produce multiple tables but instead multiple tbody and this seems to produce good output https://playground.jsreport.net/w/anon/P92dKWRg



  • Hi
    Thanks for the solution.


Log in to reply
 

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