Print to E-Mail
- Hannes Holst
- General downloads
- 3,24 KB
- Downloads today 0
- 30 day downloads 21
- Total downloads 151
- Overall download rank #1955 / 2030
- Today page views 0
- 30 days page views 46
- Total views 525
- MD5 digest
- Downloaded 7 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.