Esempio n. 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            InPhieuReport rpt = new InPhieuReport();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void frmInPhieu_Load(object sender, EventArgs e)
        {
            InPhieuReport inphieu = new InPhieuReport();
            string        select  = "SELECT* FROM vInPhieu WHERE MaPhieu='" + maphieu + "'";

            inphieu.SetDataSource(DataConn.GrdSource(select).Tables[0]);
            crystalReportViewer1.ReportSource = inphieu;
        }