예제 #1
0
 private void frmReportHistory_Load(object sender, System.EventArgs e)
 {
     //instantiate the OrderHistory Crystal Report
     orderHistoryReport = new OrderHistory();
     //bind the report to the northwindData dataset
     orderHistoryReport.SetDataSource(MainModule.northwindData);
     //set the ReportSource of the Crystal Report Viewer to the OrderHistory Crystal Report
     HistoryCrystalReportViewer.ReportSource = orderHistoryReport;
 }
예제 #2
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
 {
     OrderHistory rpt = new OrderHistory();
     rpt.Site = this.Site;
     return rpt;
 }