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 :
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 192 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 129

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans