Asp.Net Core: Download SSRS reports in PDF format on client browser

前端 未结 3 2060
野趣味
野趣味 2020-12-11 22:36

I have one SSRS report URL which if I enter that URL in the browser then it shows the SSRS report with Print and Save option like:

Which works fine on the b

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-11 22:50

    If you want a simple URL to download the report in PDF format, don't add parameters to the web portal URL but add them to an URL that points to the web service:

    string URL = "http://xyz/reportserver/?/UAT/SampleReport_V1";
    string Command = "Render";
    string Format = "PDF";
    URL = URL + "&SrNo=X123&rs:Command=" + Command + "&rs:Format=" + Format;
    

提交回复
热议问题