Hi all,
Advance thanks to helping me, i have implemented rdlc report in asp.net mvc,everything working as per expectations, but the report viewer contains the move next page, searching, options these two options not working.
Can some one guide me how to do, i'm new to implement RDLC reports a tried a lot to solve but i didn't sole it. its very argent to implement client is waiting for my update.
RDLC REPORT Version: 12.0.0.0 i have used.
What I have tried:
void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
LoadReport();
}
}
LoadReport() implementation:
public void LoadReport()
{
string[] _billedTostationID = Session["StationIDs"] as string[];
var _loggedInStn = Session["LoggedInStationID"];
var loggedInStn = Convert.ToInt32(_loggedInStn);
string[] _servicetypeIDs = Session["ServiceTypeIDs"] as string[];
DateTime _fromDate = Convert.ToDateTime(Session["FromDate"] == null ? DateTime.Now : Session["FromDate"]);
DateTime _toDate = Convert.ToDateTime(Session["ToDate"] == null ? DateTime.Now : Session["ToDate"]);
List TotalList = GetAllList(_billedTostationID, loggedInStn, _servicetypeIDs, _fromDate, _toDate);
if (TotalList.Count > 0 || TotalList.Count == 0)
{
ReportViewer1.LocalReport.ReportPath = Server.MapPath("~/Rdlc/StationToStationInvoice.rdlc");
ReportViewer1.LocalReport.DataSources.Clear();
Microsoft.Reporting.WebForms.ReportDataSource rds = new Microsoft.Reporting.WebForms.ReportDataSource("StationToStation", TotalList);
ReportViewer1.LocalReport.DataSources.Add(rds);
ReportViewer1.LocalReport.Refresh();
ReportViewer1.PageCountMode = PageCountMode.Actual;
ReportViewer1.ProcessingMode = ProcessingMode.Local;
}
else
{
}
}
In Body:
<div>
<asp:ScriptManager ID="ScriptManager1" runat="server">
<rsweb:ReportViewer ID="ReportViewer1" runat="server" AsyncRendering="false" PageCountMode="Actual" Height="429px" Width="983px" ShowBackButton="False" ShowFindControls="False" ShowPrintButton="False" ShowZoomControl="False">
</div>
I have re fared the below url to implement:
http://www.dotnetawesome.com/2015/01/how-to-display-rdlc-report-in-report-viewer-control-into-mvc4.html
[
^]