Hi,
I'm trying to send the Email with PDF file as an attachment in NAV 2018. I've used the following code
Thanks
*This post is locked for comments
Hi,
I'm trying to send the Email with PDF file as an attachment in NAV 2018. I've used the following code
*This post is locked for comments
I've tried this and posted a blog.
www.cloudfronts.com/workaround-to-report-saveaspdf-in-nav-2018
There is AddAttacmentStream function in SMTP codeunit (400), use it instead of AddAttachment.
So what you say is I've to create an Instream/Outstream which will take report (Temporary as PDF) and pass this stream to SMTP.AddAttachment method?
Microsoft docs tells next thing:
Code that relies on temporary files must be rewritten to rely on InStream and OutStream types.
Code that relies on permanent files must be rewritten to use another form of permanent storage.
So, we can forget about FileManagement.ServerTempFileName in AL.