Click here to Skip to main content
15,068,879 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
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:

C#
void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                LoadReport();
            }
        }

LoadReport() implementation:

 public void LoadReport()
        {
            string[] _billedTostationID = Session["StationIDs"] as string[];

            //loged in station id
            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.ShowParameterPrompts = true;
                //ReportViewer1.LocalReport.EnableHyperlinks = true;
                ReportViewer1.LocalReport.Refresh();
                ReportViewer1.PageCountMode = PageCountMode.Actual;
                ReportViewer1.ProcessingMode = ProcessingMode.Local;
            }
            else
            {

            }
        }

In Body:
ASP.NET
<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
[^]
Posted
Updated 6-Jul-17 14:54pm
v2

1 solution

Hi All,

The solutions is simple, but its kill my time to find, if any one face same problem try to resolve below process.

1. in mvc application we have default shared folder in side the views, i just created a aspx page in side shared folder,
because if that i'm n't able to search and move to next page. Create a new folder out side shared folder, paste all aspx pages inside the folder.

2. that's its, for great
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900