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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

RDLC report was not showing

Thread ID:

Created:

Updated:

Platform:

Replies:

124470 Jun 13,2016 07:07 AM UTC Jun 16,2016 04:57 AM UTC JavaScript 5
loading
Tags: ejReportViewer
Nitheesh
Asked On June 13, 2016 07:07 AM UTC

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


Yuvaraj Devarajan [Syncfusion]
Replied On 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 


Nitheesh
Replied On June 14, 2016 05:47 AM UTC

Hi Yuvara,

Thanks for your replay..

Let me try and inform you.

Regards,
Nitheesh

Yuvaraj Devarajan [Syncfusion]
Replied On June 15, 2016 03:50 AM UTC

Hi Nitheesh, 

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

Regards, 
Yuvaraj D 


Nitheesh
Replied On June 15, 2016 03:53 AM UTC

Hi Yuvara,

Thanks, It's working....

Have a good day!!!

Regards,
Nitheesh

Yuvaraj Devarajan [Syncfusion]
Replied On 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 


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.

Warning Icon 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.Close Icon

;