web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How to generate the pdf of custom ssrs report with code and save it this pdf as attachment(docuref)

(0) ShareShare
ReportReport
Posted on by 10

Hello all,

I have created a custom SSRS report on D365Fo x++

I have a requirement that , during the posting of this SalesOrder i need to create an attachmend on custinvoicejour with the pdf of this report.

My question is : How to generate this pdf of this custom report with code, without download on screen..and create an attachment with this generated pdf on custinvoicejour, creating a record on docuref with this pdf

Regards

I have the same question (0)
  • Verified answer
    GirishS Profile Picture
    27,833 Moderator on at

    Hi,

    Hope the below blog helps you.

    https://community.dynamics.com/365/b/dynamics365meritsolutions/posts/render-report-to-memory-stream-d365-aka-ax7

    Thanks,

    Girish S.

  • PaProgrammer Profile Picture
    10 on at

    Hi,

    Is any way to do this without showing the downloaded pdf on screen?

  • Suggested answer
    GirishS Profile Picture
    27,833 Moderator on at

    You can comment the below code to restrict sending the file to user for download.

    // Upload file to temp storage and direct the browser to the file URL
    File::SendFileToUser(stream, settings.parmFileName());

    Thanks,

    Girish S.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 512 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 386

#3
Adis Profile Picture

Adis 259 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans