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
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.

RDLC report was not showing

Hi,

In my project i have using one RDLC report but that was not showing properly

This is my code :

<style>
    #rptViewer {
        min-height650px;
        min-width100%;
    }
</style>

<div style="width:100%" id="rptViewer">

</div>
 
<script src="@Href("~/Modules/Scripts/jquery.easing.1.3.min.js")"></script>
<script src="@Href("~/Modules/Scripts/ej/ej.web.all.min.js")"></script>
 
<script>
    $(document).ready(function () {
        $("#rptViewer").ejReportViewer({
            //reportServiceUrl: "/Modules/api/ReportAPI",
            processingMode: ej.ReportViewer.ProcessingMode.Local,
            reportPath: '~/Modules/Report/IndicatorReport.rdlc',
            dataSources: [{
                value: [
                {
                    Age: "23", Name: "Nitheesh"
                }],
                name: "DataSet1"
            }]
        });
    });
</script>
and in here i am not using any report service URL

This is my report and Dataset structure




And the output is showing like this





Then after I have used MVC like this:

@using Syncfusion.JavaScript
@using Syncfusion.MVC.EJ
 
<style>
    #rptViewer {
        min-height650px;
        min-width100%;
    }
</style>
 
 
 
<div style="width:100%" id="rptViewer">
    @(Html.EJ().ReportViewer("reportviewer")
        .ProcessingMode(Syncfusion.JavaScript.ReportViewerEnums.ProcessingMode.Local).ReportPath("~/Modules/Report/IndicatorReport.rdlc")
        .ReportLoaded("onReportLoaded").DataSources(ds => { ds.Name("DataSet1").Value(ViewData["bill_2013"]).Add(); ds.Name("DataSet2").Value(ViewData["bill_2012"]).Add(); ds.Name("DataSet3").Value(ViewData["bill_desc"]).Add(); })
                  )
</div>

And in my controller


public ActionResult GetSOReport()
        {
            ViewData["bill_2012"] = Billionaires.GetList_2012();
            ViewData["bill_2013"] = Billionaires.GetList_2013();
            ViewData["bill_desc"] = Indicator.GetIndicator();
 
            return PartialView("_SOReport");
        }

But this is also not working..
In browser it's showing like this



I am waiting for your valuable replay....

Thank you


5 Replies

YD Yuvaraj Devarajan Syncfusion Team June 14, 2016 05:43 AM UTC

Hi Nitheesh, 

Thanks for contacting Syncfusion support. 

Our ReportViewer control requires reporting service to process the report definition and we could not render/process the report without Reporting Service (WebAPI controller). So, specify reportServiceUrl in your application to avoid the mentioned issue as shown in the below code example.   
 
JS: 
$(function () { 
                $("#container").ejReportViewer( 
                    { 
                        reportServiceUrl: "/api/ReportApi",                        
                        processingMode: ej.ReportViewer.ProcessingMode.Local,                        
                        reportPath: "~/Report/IndicatorReport.rdlc", 
                        reportLoaded: "onReportLoaded" 
                    }); 
            }); 


We have prepared the sample and it can be downloaded from below location, 

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

You can obtain the JavaScript ReportViewer samples from the below build installed location, 
%userprofile%\AppData\Local\Syncfusion\EssentialStudio\version\JavaScript\reportsamples 

Regards, 
Yuvaraj D 



NI Nitheesh June 14, 2016 05:47 AM UTC

Hi Yuvara,

Thanks for your replay..

Let me try and inform you.

Regards,
Nitheesh


YD Yuvaraj Devarajan Syncfusion Team June 15, 2016 03:50 AM UTC

Hi Nitheesh, 

Thanks for your update. We will wait to hear from you. 

Regards, 
Yuvaraj D 



NI Nitheesh June 15, 2016 03:53 AM UTC

Hi Yuvara,

Thanks, It's working....

Have a good day!!!

Regards,
Nitheesh


YD Yuvaraj Devarajan Syncfusion Team June 16, 2016 04:57 AM UTC

Hi Nitheesh, 

Thanks for the update. 

We are happy to hear that your issue is resolved. 

Please let us know if you need further assistance. 

Regards, 
Yuvaraj D 


Loader.
Up arrow icon