public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { CrystalReportPurchase rpt = new CrystalReportPurchase(); rpt.Site = this.Site; return(rpt); }
private void formPucrchaseReport_Load(object sender, EventArgs e) { this.MinimumSize = this.Size; DAL.Pucrchase pucrchase = new Pucrchase(); //proGrid1.DataSource = pucrchase.Select().Tables[0]; //ReportDocument reportDocument = new ReportDocument(); CrystalReportPurchase pr = new CrystalReportPurchase(); pr.Database.Tables["Purches"].SetDataSource(pucrchase.Select().Tables[0]); //reportDocument.Load("C:\\Users\\Sunil\\Documents\\Visual Studio 2013\\Projects\\Windows Form\\Point Of Sale\\Point Of Sale\\Point Of Sale\\Presentation\\PucrchaseReport.rpt"); crystalReportPucrchase.ReportSource = pr; crystalReportPucrchase.Refresh(); }