You need to sign in to do that
Don't have an account?
Sidhartha Mohapatra 16
Page break CSS not working in lightning LWC Salesforce
I am trying to do page break in LWC. But it is not working. Below is the code. How to do page break in lightning while printing the page to pdf.
<template> <div>First Page</div> <div style="page-break-before: always;">Second page</div> <lightning-button label="Print" title="print" onclick={printpreview} class="printbutton"></lightning-button> <lightning-button label="Back" title="Back to record" onclick={back} class="back"></lightning-button> </template>