I need to send a PDF report through a service in D365FO. To do this, I must generate an invoice report, configure the report as a file (since mostly in the system it is configured for all cases as 'display on screen'), and then send that PDF via the server. My question is whether this is achieved through development using an instance of the LedgerJournalController class. I have researched a bit and many suggestions make use of this class to generate a new report. In my case, I don't need to create a new report, but only to obtain that generated PDF to return it in the response. Any guidance would be appreciated. Thank you very much./
You can use SRSProxy.renderReportToByteArray() to get a prinout of an SSRS report (and then send it where needed). Use renderReportToByteArray in a search engine to find blog posts with examples.
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.