You need to sign in to do that
Don't have an account?
Lukas van Rooyen
Need to get report content and then convert it to pdf
Hi all. I am required to create a button that when clicked gets the report data of the current report you are on and the converts it to pdf.
So I was thinking it could get the data with the apex class and the be displayed on a visual force page in pdf format?
So I was thinking it could get the data with the apex class and the be displayed on a visual force page in pdf format?
Yes you can use VF page to renderAs PDF to display data in pdf format.
Below are few working examples that can help you with your implementation.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_output_pdf_render_in_apex.htm
https://salesforce.stackexchange.com/questions/57243/how-to-create-a-visual-force-page-as-a-pdf-report-it-should-be-link-on-the-quot
https://salesforce.stackexchange.com/questions/143044/exporting-report-as-pdf
http://www.interactiveties.com/blog/2015/render-visualforce-pdf.php
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,
Vinay Kumar