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

            rpt.Site = this.Site;
            return(rpt);
        }
        public InHoaDon(int id)
        {
            InitializeComponent();
            HoaDonReport rpt = new HoaDonReport();

            crystalReportViewer1.ReportSource = rpt;
            rpt.SetDatabaseLogon("sql", "sa2012", "DESKTOP-AGVC0GA\\SQLEXPRESS", "QuanLyQuanCafe");

            rpt.SetParameterValue("InHoaDon", id);
        }