function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Harshita DwivediHarshita Dwivedi 

Page break in vf rendered word doc

Hi friends,
I am trying to create page breaks in vf rendered word doc using page-break-after: always but it is generating a blank page at the end.
How to get rid of that blank page? any Sugegstions
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Harshita,

when using the page-break-after: always for the tag, it will create a page break after the last bit of the table, creating an entirely blank page at the end every time! To fix this just change it to page-break-after: auto. It will break correctly and not create an extra blank page. hope it will be helpful.

Please mark it as best answer if the information is informative.so that question is removed from an unanswered question and appear as a proper solution.

Thanks
Rahul Kumar