示例#1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrossTabReport rpt = new CrossTabReport();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void CrossTabReportForm_Load(object sender, EventArgs e)
        {
            Team10bDS ds = new Team10bDS();

            Team10bDSTableAdapters.BooksTableAdapter bta = new Team10bDSTableAdapters.BooksTableAdapter();
            bta.Fill(ds.Books);
            CrossTabReport cr = new CrossTabReport();

            cr.SetDataSource(ds);
            CrossTabCRViewer.ReportSource = cr;
        }