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

            rpt.Site = this.Site;
            return(rpt);
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            sql = "SELECT * from Thuoc";
            da  = new SqlDataAdapter(sql, conn);
            dtreport.Clear();
            da.Fill(dtreport);
            rptBcHangton rpt = new rptBcHangton();

            rpt.SetDataSource(dtreport);

            frmBaocaoHangtonViewercs f = new frmBaocaoHangtonViewercs(rpt);

            f.Show();
            this.Close();
        }
 public frmBaocaoHangtonViewercs(rptBcHangton rpt)
 {
     InitializeComponent();
     crystalReportViewer1.ReportSource = rpt;
 }