Prady
Prady

Reputation: 11320

Print a datatable from VF page

I have two apex:datatable in my VF page. I need an option of printing these tables from the VF page. How as renderasPdf work? does it print the whole page or can we render only that datatable? Or should we have the table generated in another vf page and render that page as pdf

Any pointers?

Thanks Prady

Upvotes: 1

Views: 805

Answers (1)

Jeremy Ross
Jeremy Ross

Reputation: 11600

renderAs=pdf renders the entire page. You could make your datatable a custom component and include it in two different VF pages: 1 that is your screen-only page, the other that is a pdf VF page.

Upvotes: 4

Related Questions