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, use forum instead, perhaps other people have the same question, or better answers.
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.
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.
Answers
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.
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.
You can look at the code in the table 77 how can it be done.
Function SendEmailToCustDirectly, for example.