function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
nickwick76nickwick76 

Print records or attachments from apex

I need to do two print actions.

 

1. Print X records as pdfs. These should look the same way but with different data. This should be able to solve by printing a visualforce page rendered as pdf which loops over the records I am interested in.

 

2. Print attachments to a record. For example a pdf-file attached to a contact. I would like to print this X times. Anyone know how this can be accomplished? I seek all possible ways. One way is probably to have it opened from the code and then click the print button yourself from the PDF-application. It would be preferred to have it sent to the printer automatically and just confirm or perhaps some other smart solution.

 

Thanks / Niklas

sandeep@Salesforcesandeep@Salesforce

Hi Nick, 

 

Here is link where you can get idea by below link

http://www.salesforce.com/us/developer/docs/pages/Content/pages_quick_start_renderas_pdf.htm

 

Please so let me know in case of further assist