![]() ![]() On the actual page we will add a new Action to allow us to send the PDF file by E-mail. IF FileSystemObject.FileExists(ToFile) THENįileSystemObject.DeleteFile(ToFile,TRUE) įileSystemObject.CopyFile(MagicPath,ToFile) įileSystemObject.DeleteFile(MagicPath,TRUE) įileSystemObject is an automation control of type âMicrosoft Scripting Runtimeâ.FileSystemObject. In this article we will put it all together in an easy to understand example that will give you emailing capabilities with PDF attachments.įirst off we need the helper function to move the file from server tier to client tier, it looks like this:ÄownloadToClientFileName2(FileToDownload : Text ToFile : Text) : TextÄOWNLOADFROMSTREAM(IStream,'','','',MagicPath)The Dynamics NAV team blog have posted a couple interesting articles about how to move files between the tiers. ![]() ![]() In order to get the PDF, that gets generated on the service tier, available on the client tier, we need to copy the file from the server to the client tier. At least that is benefit coming back to us, while struggling with the report creations (read post from Alex Chow: How to define Set/GetData). Thanks to Microsoft Reporting Services PDF Rendering Extension, all RTC reports can be exported to PDF. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |