How to show posted sales invoice report in email body after post sales invoice

yohesyohes Posts: 2Member
Hi,
I am new to nav can you suggest some answer
how to show report in email body and send through email

Answers

  • SanderDkSanderDk Posts: 314Member
    First I will suggest another way:
    Normally I would create a normal email (ex. with a html template) then I would attach the invoice as a PDF, it will allow you to still use the report layout from NAV.


    One time, long ago I did create some code that read the Sales invoice Header and sales invoice line, and created a email throw simple HTML and Inline CSS.

    So basically I created a email with HTML that contained the data from the sales invoice.
    For help, do not use PM, but use forum instead, perhaps other people have the same question, or better answers.
  • yohesyohes Posts: 2Member
    Thanks for the response ,
    Is there is any code available to save report in html and convert it to text and show that on email body , the below paragraph was the client requirement

    Client wants that Email body should contain the Report Layout/Output exactly the same figure. They don't have any interest to open the attachment for the same. They want everything in Email Body.
  • AlexDenAlexDen Posts: 46Member
    You can save report in html if it has Word layout.
    You can look at the code in the table 77 how can it be done.
    Function SendEmailToCustDirectly, for example.
Sign In or Register to comment.