+ Start a Discussion
Heidi ApaHeidi Apa 

How to call to printer just clikcing a button to print multiple attachments?

Hi there!

I need to code a button action that prints PDF attachments of the the selected objects in a list view.
How can I call to the printer automatically for doing this just by clicking a button?

Thank you!!
Navin SoniNavin Soni
Hi Heidi Apa,

You can call the printer just click a button using this code.
<apex:commandButton value="Print" onclick="window.print();"/>
Thanks,
Navin Soni