public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            OrderCrystalReport1 rpt = new OrderCrystalReport1();

            rpt.Site = this.Site;
            return(rpt);
        }
 private void OrderReportUI_Load(object sender, EventArgs e)
 {
     FormBorderStyle = FormBorderStyle.FixedDialog;
     WindowState = FormWindowState.Maximized;
     List<SelfOrder> orders = GetAll();
     OrderCrystalReport1  report1=new OrderCrystalReport1();
     report1.SetDataSource(orders);
     crystalReportViewer1.ReportSource = report1;
 }
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     OrderCrystalReport1 rpt = new OrderCrystalReport1();
     rpt.Site = this.Site;
     return rpt;
 }