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