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
SFDCDev7SFDCDev7 

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.

Richie DRichie D

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. 

SFDCDev7SFDCDev7

Thanks Richie.

I will try this.

 

-AJ

JohannesBorrmanJohannesBorrman

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

SFDCDev7SFDCDev7

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