Beispiel #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrystalReportPhieuSuCo rpt = new CrystalReportPhieuSuCo();

            rpt.Site = this.Site;
            return(rpt);
        }
Beispiel #2
0
        private void buttonchon_Click(object sender, EventArgs e)
        {
            String hh = comboBox1.SelectedValue.ToString();

            GiaoDienCuaHang.DataLayer.PhieuSuCoData psc = new GiaoDienCuaHang.DataLayer.PhieuSuCoData();
            CrystalReportPhieuSuCo parameter            = new CrystalReportPhieuSuCo();

            parameter.SetDataSource(psc.LayDS_PhieuSuCo(hh));
            parameter.SetParameterValue("tenhh", comboBox1.Text);
            crystalReportViewer1.ReportSource = parameter;
        }