Print to E-Mail

AdministratorAdministrator Member, Moderator, Administrator Posts: 2,500
Print to E-Mail
An easy and straight forward take to print any Report as PDF and send it by E-Mail.
Simply define a filter on a record and call the function "Print2Email" with the desired Report.
This function is useful, when you want to print Reports using the Job Queue, but it is not possible to install the Printer on the Server of the ServiceTier (common in Cloud environments). When your Printer supports automatic printing of E-Mail attachments, it's easy to just generate an E-Mail and send it to the Printer instead of handling the heavy administrative task to make the Printer locally available on the ServiceTier-Server.

The implementation will add the field "E-Mail" to the Table 78 "Printer Selection" and Page 64 "Printer Selection".
This is just one kind of handling the E-Mail address.
Additionally the standard Codeunit 400 "SMTP Mail" will be used to generate the Email and send it.

The Codeunit contains an example in the "OnRun"-Trigger, for how to call the "Print2Email"-function which works out-of-the-box in the CRONUS-Company.

https://mibuso.com/downloads/print-to-e-mail

Discuss this download here.
Sign In or Register to comment.