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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

SSRS Report generate PDF by code

(0) ShareShare
ReportReport
Posted on by 2
Good morning,

I have a problem generating a PDF file from an SSRS report in Dynamics. So far we were using a solution based on two Javascript calls to //CRMReports/rsviewer/reportviewer.aspx/ and //Reserved.ReportViewerWebControl.axd/. Something very similar to what is described in this link: 

But this one has stopped working due to the balancing of reporting servers. The session obtained in the first call is not always valid for the second call.
I would need either a solution to be able to pass an ARRAffinity Cookie through Javascript and be able to pass a session from one call to another. Or another type of solution that by means of code, either Javascript or C#, allows to transform a SSRS report to PDF.

Thanks, best regards.
I have the same question (0)
  • Suggested answer
    Dengliang Li Profile Picture
    Microsoft Employee on at
    Hi,
     
    You can export PDF files from SSRS reports using C#. Please refer to the following link.
  • Moreplus Profile Picture
    2 on at
    Hello Dengliang Li,
     
    This solution applies to On-Premise environments. I don't think it can be applied in an On-line environment.
     
    Thank you, best regards

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 61

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans