Display pdf in radzen

Hello,
I have a custom webservice which returns a pdf based on the provided parameters. To display this in radzen I have used the SSRS Report Viewer use proxy option to customize the URL. PDF is displayed but all the pages are blank.

        partial void OnReportRequest(ref HttpRequestMessage requestMessage)
        {

            requestMessage.RequestUri = new Uri("http://services.bankwise.net/rptservice/getreport.asmx/LoadRPT?strClientID=11&strReportFile=rptCustomerID.rpt&strParameters=0");
        }

The output is


All the pages are blank. If I paste the above URL in browser pdf shows contents.
Is there a better way? Kindly advise

You shouldn't use the SSRSViewer for that. Try using a regular <iframe> instead (inside the Radzen HTML component). Set the src attribute of the iframe to the desired URL.

1 Like

It worked thanks a lot. I plan subscribe today do you have any ongoing discount offer. Looking forward for your continued support.

Hi @Vinod_Pillai,

You are an active member of the Radzen community and you often help fellow users. We would like to give you a free Radzen Subscription as a token of our gratitude. Please send an email to info@radzen.com to get it.

4 Likes