How can i send a report as mail. Wats the call code for it.

Suman_Prabhu_KumarSuman_Prabhu_Kumar Member Posts: 2
Hi all,

What is the C/AL code syntax for send a report (output) as a mail.

Regards,
Suman
R. Suman Prabhu Kumar
Technical Head
Direction Software Solutions

Comments

  • matttraxmatttrax Member Posts: 2,309
    If you do a search for "send report as email" you should find more than enough to figure out what you need to do. If you still have problems let everyone know and I'm sure we can help you out.
  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    1. Save the report to HTML (using SAVEASHTML-function)
    2. Attach this html-file to a mail and send it using Codeunit 397

    OR

    Print the report to a pdf-printer that can also send it through mail. You need some pdf-software for this that has some mail functionality. The advantage of pdf is that you have the same layout (with images/logo's/borders) as your original report.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
Sign In or Register to comment.