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

            rpt.Site = this.Site;
            return(rpt);
        }
示例#2
0
        public InHoaDon(int id)
        {
            InitializeComponent();
            HoaDonReport rpt = new HoaDonReport();

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

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