コード例 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            SFCustomer rpt = new SFCustomer();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
        private void memberListToolStripMenuItem_Click(object sender, EventArgs e)
        {
            sf = new Sportsfacilities();
            SportsfacilitiesTableAdapters.CustomersTableAdapter ta = new SportsfacilitiesTableAdapters.CustomersTableAdapter();
            ta.Fill(sf.Customers);


            SFCustomer cr = new SFCustomer();

            cr.SetDataSource(sf);
            crystalReportViewer1.ReportSource = cr;
            DisplayResults();
        }