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
indyindy 

Auto Print Document

Hi All,

 

I am generating a PDF document by clicking the button on SObject. But the requirement was to print that document automatically whenever there is a change in objects attribute value.

 

For Ex: If order status = 'Completed' then print the document.

 

Please suggest is there a way to achieve this by using Apex code or any API.

Or Is it possible with Workflow outbound message ?.

 

If not possible by coding kindly suggest any AppExchange App.

 

 

Thanks in advance.

 

--Indy

ShaTShaT

Hi indy ,

 

 You Can create a trigger and call the class which is used in generating your pdf.

 For print we can use window.print() using java script on form load.

 

 

 

Thanks

Shailu

indyindy

Hi Shailu,

 

Thanks for your reply.

 

window.print() is opening with print dialog box to choose the printer. Is there a way to disable/bypass that dialog box and directly go for printing?

 

Is there any browser dependency for window.print() method.?

 

Thanks again!

 

 

--Indy