Hi, I'm a newbie. I am trying to add a button to a page which will print the page, either as a PDF or just simply print it.
I've been trying to use this guide as a starting point: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_output_pdf_render_in_apex.htm
I created a visualforce page called RenderToPDF. Then, I went to an account page, and clicked Setup->Edit Object. I created a button with Content Source as "Visualforce Page". However, my Visualforce page I created doesn't show in the Content dropdown. How do I add the Visualforce page to the Content dropdown, or is there an easier way to add a button to print the page?
1 risposta
To clarify, I don't necessarily need to print a page, I am just trying to execute the sample code in the link I provided so it executes the code after pressing a button.