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. Image for the cookie policy date
close icon
Starting in 2019, the Reporting control is no longer included in Essential Studio. If you're experiencing issues with the Syncfusion Reporting Platform, Report Viewer, Report Designer, or Report Writer, we recommend migrating to Bold Reports, our dedicated reporting platform.

Bold Reports offers a comprehensive suite of tools and features for all your reporting needs, and we will help you make a smooth transition from the discontinued control. Our support team at https://support.boldreports.com/ is here to assist you with any questions or difficulties you may encounter during the migration process.

We thank you for choosing Syncfusion and appreciate your understanding.

Show report in ReportService from SF ReportServer

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>

1 Reply

YD Yuvaraj Devarajan Syncfusion Team August 23, 2017 07:01 AM UTC

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. 


Loader.
Live Chat Icon For mobile
Up arrow icon