General downloads

Print to E-Mail

Author
Hannes Holst  
Category
General downloads
Date
01/11/2017
Size
3,24 KB
Downloads
66
MD5 digest
8B7F356A1D65AF4936B88A8668156FA3
Popularity
Downloaded 39 times in the last two weeks

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.

Download this file

Screenshots