Skip to main content
Andrew Albright (Biolase) 님이 #Apex에 질문했습니다

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개
  1. 2022년 6월 17일 오후 10:11
    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.
0/9000