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,
can u tell me how to save report to html and convert it to text , then send that text in email body
Hi,
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).....
WordApplication :=WordApplication.ApplicationClass; WordDocument :=WordHelper.CallOpen(WordApplication,FileName,FALSE,TRUE); FileName2 := TEMPORARYPATH + DELCHR(FORMAT(CURRENTDATETIME),'=','\/:*?"<>| '); WordHelper.CallSaveAsFormat(WordDocument,FileName2,WordSaveFormat.wdFormatHTML);
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 OK
I can't find the actual reason.
Ultimate, I've achieved the goal. Thank you everyone.
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 ?
Feature is also avilable with NAV 2016 but not completly baked, but you can do same in NAV 2016 also.
I have read the blog, I think it's default feature of NAV 2017.
Thanks for your reply.
I got your point. So, I have to move for the Coding Option (Second Option).
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.
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....
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,524 Super User 2024 Season 2
Martin Dráb 228,469 Most Valuable Professional
nmaenpaa 101,148