We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Show report in ReportService from SF ReportServer

Thread ID:

Created:

Updated:

Platform:

Replies:

132241 Aug 22,2017 11:33 AM Aug 23,2017 03:01 AM ASP.NET Web Forms 1
loading
Tags: ReportViewer
Lino Donega
Asked On August 22, 2017 11:33 AM

Hello, 
I installed the SF ReportServer and added a rdl that I built in the SF Report Designer, both working normally.

After, configured the public RDL and it is accessible in the URL:
http://localhost:64744/en-us/reports/Test/Sample01

I'm using Reportviewer in Webform without the Web Api, and configured the following but did not get results, where could I be wrong?


<head runat="server">
<link rel='nofollow' href="http://cdn.syncfusion.com/js/web/flat-azure/ej.web.all-latest.min.css" rel="stylesheet" />
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js" type="text/javascript">
</script>
<script src="http://cdn.syncfusion.com/js/web/ej.web.all-latest.min.js"></script>
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div style="height: 650px;width: 950px;min-height:404px;">
<ej:ReportViewer ID="ReportViewer1" runat="server" ReportServerUrl="http://localhost:64744/"   reportpath="/reports/Testes/Sample01"                 ProcessingMode="Remote"></ej:ReportViewer>
</form>
</body>
</html>

Yuvaraj Devarajan [Syncfusion]
Replied On August 23, 2017 03:01 AM

Hi Lino, 

Thanks for contacting Syncfusion Support. 

Our ReportViewer control requires the WebAPI service to process the report in server side. We could not render/process the report without WebAPI Restful service. So, we request you to create the WebAPI restful service to process the report in server side and specify the WebAPI path in “e-report-service-url” property as shown in below code example. 

<form id="form1" runat="server"> 
    <div style="height: 650px;width: 950px;min-height:404px;"> 
        <ej:ReportViewer runat="server" ID="viewer" ReportServerUrl="http://reportserver.syncfusion.com:80/" ReportPath="/Sample Reports/Territory Sales" ProcessingMode="Remote" ReportServiceUrl="/api/ReportApi"/>      
    </div> 
</form> 
 
Also, we have to load the Report from ReportServer then you must use Reportserver extension WebAPI file to load the Report and datasource detail in your application. So, without specifying the Reportserver WebAPI, it is unable to load the report from Syncfusion server. Please specify the ReportServer URL path in “ReportServerUrl” property in control render page and specify the ReportServer login credential in WebAPI “OnInitReportOptions” method as shown in below code example, 

Default.ASPX, 
<form id="form1" runat="server"> 
    <div style="height: 650px;width: 950px;min-height:404px;"> 
        <ej:ReportViewer runat="server" ID="viewer" ReportServerUrl="http://reportserver.syncfusion.com:80/" ReportPath="/Sample Reports/Territory Sales" ProcessingMode="Remote" ReportServiceUrl="/api/ReportApi"/>      
    </div> 
</form> 
 
WebAPI: 
public void OnInitReportOptions(ReportViewerOptions reportOption) 
        { 
            reportOption.ReportModel.ReportingServer = new ReportingServerExt(); 
            reportOption.ReportModel.ReportServerCredential = new System.Net.NetworkCredential("guest", "demo"); 
        } 
  
We have prepared a sample and it can be downloaded from below location, 

Please refer to the below UG documentation link for more detail, 

Regards, 
Yuvaraj D. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;