Print to E-Mail
- Author
- Hannes Holst
- Category
- General downloads
- Date
- 01/11/2017
- Size
- 3,24 KB
- Downloads
-
940
Detailed statistics
- Downloads today 0
- 30 day downloads 4
- Total downloads 940
- Overall download rank #1493 / 2083
- Today page views 0
- 30 days page views 2
- Total views 1443
- Popularity
- Downloaded 1 time 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.