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

Render a Visualforce page as PDF issues
I'm trying to render a HTML table in a Visualvorce page as PDF and I'm having the following issues:
- I used the CSS below to display the page in landscape but it doesn't work.
<style > @page { size:landscape; } </style>
2. When rendering the VF page as PDF, the table is displayed without the colors I added using CSS.
3.How can I create a button that shows the VF page ready to be printed out?
Thank you very much!
Hi,
Please sorround your style tag with a head tag.
Also i observed that the render as pdf was not working in the version 27 or version 28. I had to change the visualforce version to version 26.
Hope this helps.
Regards,
Satish Kumar
Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.
All Answers
Hi,
Please sorround your style tag with a head tag.
Also i observed that the render as pdf was not working in the version 27 or version 28. I had to change the visualforce version to version 26.
Hope this helps.
Regards,
Satish Kumar
Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.
Thanks! Still doesn't work as I think it is because I'm using the version 28. Is there a way to solve this without downgrading the version?
Hi,
I am not sure of any other ways. But let me check the known issues site to see if this is already reported.
Regards,
Satish Kumar