Beispiel #1
0
        private void ReportBySaleNoSummary_Load(object sender, EventArgs e)
        {
            SaleController controller = new SaleController();

            this.rpvSaleNoSummary.LocalReport.DataSources.Clear();

            ReportDataSource rds = new ReportDataSource();

            rds.Name  = "SaleDataSet_SaleDataTable";
            rds.Value = controller.SelectSummaryBySaleNo(fromSaleNo, toSaleNo);
            this.rpvSaleNoSummary.LocalReport.DataSources.Add(rds);

            ReportParameter[] param = new ReportParameter[2];
            param[0] = new ReportParameter("FromSaleNo", this.fromSaleNo);
            param[1] = new ReportParameter("ToSaleNo", this.toSaleNo);

            this.rpvSaleNoSummary.LocalReport.SetParameters(param);
            this.rpvSaleNoSummary.ZoomMode = ZoomMode.Percent;

            this.rpvSaleNoSummary.RefreshReport();
        }