public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { CRTransactionHistory rpt = new CRTransactionHistory(); rpt.Site = this.Site; return(rpt); }
private void ReportTransactionHistory_Load(object sender, EventArgs e) { SA47_Team12bDataSet ds = new SA47_Team12bDataSet(); //SA47_Team12bDataSetTableAdapters.BooksTableAdapter booksTableAdapter = new SA47_Team12bDataSetTableAdapters.BooksTableAdapter(); //booksTableAdapter.Fill(ds.Books); //SA47_Team12bDataSetTableAdapters.IssueTransTableAdapter issueTransTableAdapter = new SA47_Team12bDataSetTableAdapters.IssueTransTableAdapter(); //issueTransTableAdapter.Fill(ds.IssueTrans); SA47_Team12bDataSetTableAdapters.TransactionHistoryTableAdapter transactionHistoryTableAdapter = new SA47_Team12bDataSetTableAdapters.TransactionHistoryTableAdapter(); transactionHistoryTableAdapter.Fill(ds.TransactionHistory); CRTransactionHistory crTransactionHistory = new CRTransactionHistory(); crTransactionHistory.SetDataSource(ds); crystalReportViewerTH.ReportSource = crTransactionHistory; }