You need to sign in to do that
Don't have an account?
Rohan Saraf
Send an pdf generated through the Visualforce Page in an email
Hello All...
I have a visualforce page that generated the details of the particulart record on click of the button.
Now I have to send the email in which there will be pdf attached of the details of that respective record.
No the issue I am facing for the email template using the HTML Format that the field of that respective standard controller object are available but not of the related objects i.e the merging fields.
can any one help me with that....????
May I suggest you please refer the below link for reference.
- http://blog.jeffdouglas.com/2010/07/16/create-and-email-a-pdf-with-salesforce-com/
Hope it helps.Please mark it as best answer if the information is informative.so that question is removed from an unanswered question and appear as a proper solution.
Thanks
Rahul Kumar
Thank you very much for your concern actually I tried this method you suggested and now the PDF got successfully generated and attached but the Problem caused is that the "PDF IS Completely blank".Here am attaching the Screenshot .
Could Please suggest anything on it...!!
- Converting a Page to a PDF File.please check the below link.
- https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_quick_start_renderas_pdf.htm
hope it helpsThanks
Rahul Kumar
It is not the problem that the PDF is coming blank, only the PDF which is getting attached to the email is coming out to be blank.
I also have button of onclick javascript...
It generates the PDF Properly...!!!