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
Kumaresan M 2Kumaresan M 2 

Bulk Printing attachments in single go in salesforce?

Hi All,

I have a requirement to print list documents thats been stored as attachments in salesforce without opening multiple times and click CTRL+P.

Is there a way to send all the docuemnts to print with single go?

Thanks & Regards,
Kumaresan M
NagaNaga (Salesforce Developers) 
Hi Kumaresan,

Assuming all pages need same param(s): /apex/pageName?id={!Opportunity.Id} and all use Oppty std. controller - you could merge them all in one master page with <apex:include>

Please see the link below for more info, this is for reports, you can follow something similar to this.

http://salesforce.stackexchange.com/questions/34274/batch-printing-salesforce-reports-and-visualforce-pages

Best Regards
Naga Kiran
Kumaresan M 2Kumaresan M 2
Hi Naga,

Thanks for your reply. In my scenario, I want to print attachment (url will be standard:https://morganstanleyhr----dev----c-cs16-content-force-com.ccg-dev.ms.com/servlet/servlet.FileDownload?file=00Pf00000545455). We dont have option to put this in VF page with <apex:include> component. We tried using putting each attchment url into <iframe> with <apex:repeat>. But we are facing cross origin reference issues as the domain will be different between Visual force page with Attchemnt content. (content-force-com & visual-force-com). 

If i try to print this page with CTRL+P, I am getting blank eevnthough all of them are present in iframe.

Please let me know if you have any suggestions.

Thanks & Regards,
Kumaresan M
Nikhila Peddiraju 4Nikhila Peddiraju 4
Hello guys,

Did you find any solution for this? I too have the above requirement(Viewing and printing all attachments in one go).

Regards,
Nikhila