public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CRBookingChart rpt = new CRBookingChart();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
        private void BookingChartReport_Load(object sender, EventArgs e)
        {
            DSBookingReport ds = new DSBookingReport();

            DSBookingReportTableAdapters.bookingdetailsTableAdapter ta = new DSBookingReportTableAdapters.bookingdetailsTableAdapter();

            ta.Fill(ds.bookingdetails);

            CRBookingChart crpt = new CRBookingChart();

            crpt.SetDataSource(ds);
            crystalReportViewer1.ReportSource = crpt;
        }