public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { BorrowReport rpt = new BorrowReport(); rpt.Site = this.Site; return(rpt); }
private void crystalReportViewer1_Load(object sender, EventArgs e) { LibDataSet context = new LibDataSet(); LibDataSetTableAdapters.BooksTableAdapter b = new LibDataSetTableAdapters.BooksTableAdapter(); LibDataSetTableAdapters.BorrowTableAdapter c = new LibDataSetTableAdapters.BorrowTableAdapter(); b.Fill(context.Books); c.Fill(context.Borrow); BorrowReport cr1 = new BorrowReport(); cr1.SetDataSource(context); crystalReportViewer1.ReportSource = cr1; }