You need to sign in to do that
Don't have an account?
joemur
How do I add pagebreak to every other record in apex:repeat?
I want to include only two repeat tables per page when rendered in WORD. I need a way to count how many records have been processed so I can add <br clear="all" style="page-break-before:always" /> after every other record. I believe I need to set a global field as a counter and check the modulus but just don't know how to do that within a visualforce page.
May I suggest you please give a try with the below code
CSS to break the page Please let us know if this helps.
Regards,
Nagendra.