public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { POSBillListCrystalReport rpt = new POSBillListCrystalReport(); rpt.Site = this.Site; return(rpt); }
private void POSBillListReport_Load(object sender, EventArgs e) { try { this.StartPosition = FormStartPosition.Manual; this.Location = new Point(0, 0); POSBillListCrystalReport crystal = new POSBillListCrystalReport(); BillingPOSPrintDataSet ds = GetData(); crystal.SetDataSource(ds); this.crystalReportViewer1.ReportSource = crystal; crystalReportViewer1.RefreshReport(); return; } catch { } }