Skip to main content

Notifications

Announcements

No record found.

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.
  • Moreplus Profile Picture
    Moreplus 2 on at
    SSRS Report generate PDF by code
    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
  • Suggested answer
    Dengliang Li Profile Picture
    Dengliang Li Microsoft Employee on at
    SSRS Report generate PDF by code
    Hi,
     
    You can export PDF files from SSRS reports using C#. Please refer to the following link.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,883 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,569 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans