Dear Sir,Currently I'm sending NAV PDF Matrix Report in the SMTP Mail attachment using JOB Queue. Now the client wants that the email body should be appeared exactly as Report Layout.How can I do this ?Kindly guide me in NAV 2016.Thanks,
Not clear the question... do you want to create an email body that has the same layout as your report? Not natively possible, the email message body is not a report :) you can write it programmatically with HTML but it's a task that you have to handle via code.
Thanks for instant reply.
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.
I just want to know is there any default feature in NAV 2016 to handle this kind of requirements.
I think there might be a possibility to save the report output as WORD Document and then Send the word document as Email Body in NAV 2016....
You can attach the report or save the report as pdf or Word Document. The request is quite strange, it’s absolutely correct that the report is attached. You can try to embed the word layout, but it’s not a default feature.
Hope this helps.
Thanks for your reply.
I got your point. So, I have to move for the Coding Option (Second Option).
I have read the blog, I think it's default feature of NAV 2017.
Feature is also avilable with NAV 2016 but not completly baked, but you can do same in NAV 2016 also.
I have saved the report output as WORD Document & Convert the same into html file. Is it possible to send this html file as Email body in NAV 2016 ?
Ultimate, I've achieved the goal. Thank you everyone.
The custom code working perfectly when I execute it manually but it does not work thru Job Queue. Debugger stops at the below mentioned code (at last Line).....
FileName2 := TEMPORARYPATH + DELCHR(FORMAT(CURRENTDATETIME),'=','\/:*?"<>| ');
It throws the error message such as.....
Microsoft Dynamics NAV
A call to Microsoft.Dynamics.Nav.Integration.Office.Word.WordHelper.CallSaveAsFormat failed with this message: Value cannot be null.
Parameter name: document
I can't find the actual reason.
Business Applications communities