public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { QuoteReport rpt = new QuoteReport(); rpt.Site = this.Site; return(rpt); }
void QuoteReportWindow_Loaded(object sender, RoutedEventArgs e) { DataSet1 ds = Services.QuotesServices.FindThisQuoteToReport(Data.SessionData.selectedQuoteToReport); QuoteReport objrpt = new QuoteReport(); objrpt.SetDataSource(ds.Tables[1]); this.crystalReportsViewer1.ViewerCore.ReportSource = objrpt; }