Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

ReportController classes, how to get the generated file?

(2) ShareShare
ReportReport
Posted on by 81
Hi everyone!
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./
  • Suggested answer
    Martin Dráb Profile Picture
    232,038 Most Valuable Professional on at
    ReportController classes, how to get the generated file?
    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.

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.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,280 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,038 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans