<style> #rptViewer { min-height: 650px; min-width: 100%; } </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
@using Syncfusion.JavaScript @using Syncfusion.MVC.EJ <style> #rptViewer { min-height: 650px; min-width: 100%; } </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>
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
$(function () {
$("#container").ejReportViewer(
{
reportServiceUrl: "/api/ReportApi",
processingMode: ej.ReportViewer.ProcessingMode.Local,
reportPath: "~/Report/IndicatorReport.rdlc",
reportLoaded: "onReportLoaded"
});
}); |