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

            rpt.Site = this.Site;
            return(rpt);
        }
示例#2
0
        public override void btnprint_Click(object sender, EventArgs e)
        {
            ds.WriteXmlSchema(@"" + Connection.GetAccessPathId() + @"Barcodes\a\BirthList.xsd");
            BirthDayReports fr = new BirthDayReports();

            fr.PrintOptions.PaperOrientation = PaperOrientation.Portrait;
            fr.PrintOptions.PaperSize        = CrystalDecisions.Shared.PaperSize.PaperLetter;
            fr.SetDataSource(ds);
            ShowAllReports s = new ShowAllReports();

            s.crystalReportViewer1.ReportSource = fr;
            s.Show();
        }