Skip to main content
Dynamics 365 Community / Forums / Sales forum / SSRS Report generate P...
Suggested answer

SSRS Report generate PDF by code

editSubscribe (0) ShareShare
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.