Hi Yuvaraj,
Here is the code for the layout and the view that calls the report:
_LayoutSyncfusionReport.cshtml
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" rel='nofollow' href="https://cdn.syncfusion.com/14.4.0.20/js/web/flat-azure/ej.web.all.min.css" />
<script src="https://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js" type="text/javascript"></script>
<script src="https://cdn.syncfusion.com/14.4.0.20/js/web/ej.web.all.min.js"> </script>
<script src="https://cdn.syncfusion.com/14.4.0.20/js/common/ej.unobtrusive.min.js"></script>
@RenderSection("styles", required: false)
</head>
<body>
<header></header>
<div id="body">
@RenderSection("featured", required: false)
<section class="content-wrapper main-content clear-fix">
@RenderBody()
@RenderSection("scripts", required: false)
</section>
</div>
@Html.EJ().ScriptManager()
</body>
</html>
CampaignListReport.cshtml
@using Syncfusion.MVC.EJ
@{
Layout = "~/Views/Shared/_LayoutSyncfusionReport.cshtml";
}
<style>
#reportviewer {
min-height: 650px;
min-width: 100%;
}
</style>
<div style="width:100%">
@(
Html.EJ().ReportViewer("reportviewer")
.ProcessingMode(Syncfusion.JavaScript.ReportViewerEnums.ProcessingMode.Local).ReportPath("~/ReportServer/CampaignList.rdlc")
.ReportServiceUrl(VirtualPathUtility.ToAbsolute("~/api/ReportApi")).DataSources(ds => ds.Name("DataSet1").Value(ViewData["CampaignListDS"]).Add())
)
</div>
The version of the libraries I am using are as follows:
Syncfusion.EJ.ReportViewer - 14.4450.0.20
Syncfusion.EJ.MVC - 14.4500.0.20
Regards,
Junior