Print to E-Mail
- Hannes Holst
- General downloads
- 3,24 KB
- Downloads today 3
- 30 day downloads 66
- Total downloads 66
- Overall download rank #1971 / 1999
- Today page views 6
- 30 days page views 259
- Total views 259
- MD5 digest
- 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.