Premium support for our pure JavaScript UI components


Post by davidb »

Hi,

We are using window.print() to print our Grid since the Grid's OOTB print feature is not support in Salesforce. LWC.

We encountered an issue where some of the rows are getting cut between pages.

Print_issue.jpg
Print_issue.jpg (156.92 KiB) Viewed 90 times

Tried adding this styling but didn't work:

@media print{
    .b-grid-row{
      page-break-inside: avoid;
    }
}

Is there any workarounds on this issue? Thanks!


Post by Maxim Gorkovsky »

Hello.
I'm afraid I can't help much on native printing behavior. I suppose you can try adding a special CSS class to some rows and enforce page break after those. Or maybe try adding !important to the style definition.


Post Reply