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; }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { OrderHistory rpt = new OrderHistory(); rpt.Site = this.Site; return rpt; }