Hi
I want to display a RDLC report in my view (.cshtml).
I have Data model with data. So i want to display them on report.
//-------------------------------
Controller action
------------------------------------
public ActionResult ViewRemmitReportList(int period, string fromDate, string toDate)
{
var creditorId = Crypto.Decrypt(Convert.ToString(Session["CreditorId"]));
USCPIService uscpService = new USCPService();
var finalRemitDto = uscpService.GetFinalRemmitDtoResult(creditorId, period.ToString(), fromDate, toDate);
ReportViewer reportViewer = LoadRemmitReport(finalRemitDto,fromDate, toDate);
ViewBag.ReportViewer = reportViewer;
return PartialView("_RemmitReportResult");
}
After that view file as following,
------------------------------------------
@using ReportViewerForMvc
@model US.BOX.CreditorPortal.Web.Model.ReportResultModel
<div id="reportView" class="table-responsive">
<iframe width="100%" height="300px" name="iframe_a">
@Html.ReportViewer(ViewBag.ReportViewer as Microsoft.Reporting.WebForms.ReportViewer, new {scrolling = "yes", width = "100%"})
</iframe>
</div>
So that's it. But I will display only Iframe. no details.
Please help me to display them on view.
I have tried more than 2 days.
Thanks all.