Esempio n. 1
0
        private void renderMachinesListReport()
        {
            DashboardData reportData        = new DashboardData();
            var           data              = reportData.GetMachinesList();
            var           reportDataSource1 = new Microsoft.Reporting.WebForms.ReportDataSource();

            reportDataSource1.Name  = "dsMachinesList";
            reportDataSource1.Value = data;
            this.ReportViewer1.LocalReport.DataSources.Add(reportDataSource1);
            ReportViewer1.LocalReport.ReportPath = Server.MapPath("~/Reports/Rdlc/MachinesList.rdlc");
            ReportViewer1.ShowPrintButton        = true;
            ReportViewer1.ZoomMode = ZoomMode.PageWidth;
        }