예제 #1
0
        private void btnprint_Click(object sender, EventArgs e)
        {
            Reports.ReportDisplay  f           = new Reports.ReportDisplay();
            DataTable              dataSource  = dcore.GetReportListPeople(txtreport_number2.Text.Trim());
            List <ReportParameter> reportParam = new List <ReportParameter>();

            //  reportParam.Add(new ReportParameter("yearin", dcore.GetMaxYearin()));
            reportViewer1.Reset();

            //Setup Report Value
            reportViewer1.LocalReport.ReportEmbeddedResource = "Navy.Reports.ReportPropleList.rdlc";
            reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSet2", dataSource));
            reportViewer1.LocalReport.Refresh();
            reportViewer1.RefreshReport();
        }