You need to sign in to do that
Don't have an account?

PageBreak in DataTable
Hi ,
I have a visualforce page which is renderas pdf. I need to give pagebreak on DataTable if it is longer than 1 page. And also i need to repeat the header on each page. Can anyone help me on this ?
Thanks.
Hi,
Have a look at css print reference (w3schools.com) . You'll need to use css to control the page breaking and headers.
I don't know how you would get this inside a datatable. I've found it best to use it on 'div's in an apex:repeat tag.
I'd suggest creating a page with static html in it and seeing what happens with various combinations of css settings. There are loads of general html tutorials on the net on this subject.
Good luck
R.
Thanks Richie.
I will try this.
-AJ
hi there!
did you have any success on this?
I'm facing the same while finishing a custom quote app which works well except this.
Regards, Johannes
Hi Johannes,
The below link helped me to achieve the requirement.
http://community.salesforce.com/sforce/board/message?board.id=Visualforce&message.id=14161#M14161
Thanks,
AJ
Try this link.
http://community.salesforce.com/sforce/board/message?board.id=Visualforce&message.id=16400&jump=true#M16400