Options

Sending a report via email

knightknight Member Posts: 45
edited 2002-10-02 in Navision Financials
Hi there,

When you run a report, for eg. a Sales Invoice over a range (eg. for 5 invoices at once), then you do Preview, and select Send (as html with the invoices as an attachment) it will by standard attach all the invoices as one html file.

I am wondering if it is possible to get the Send to attach all the invoices as separate HTML attachments on the email?

I know that navision uses a command called SAVEASHTML to save a report in HTML, but I can't find which codeunit, etc is called when I use the Send feature, even with the debugger on.

Any suggestions?

Comments

  • Options
    Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    The SAVEASHTML function is a "black box" function. You can't change the way this works. My advice is to open the created html-file (using the FILE-functions of C/AL) and split this file into different html-files yourself.
    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.