Пример #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            TotalMembersConsumePieChatReport rpt = new TotalMembersConsumePieChatReport();

            rpt.Site = this.Site;
            return(rpt);
        }
Пример #2
0
        private void Report_TotalMembersConsumePieChatReport_Load(object sender, EventArgs e)
        {
            TotalMemberConsume ds = new TotalMemberConsume();

            TotalMemberConsumeTableAdapters.TotalMembersConsumeTableAdapter ta = new TotalMemberConsumeTableAdapters.TotalMembersConsumeTableAdapter();
            TotalMembersConsumePieChatReport cRpt = new TotalMembersConsumePieChatReport();

            ta.Fill(ds.TotalMembersConsume);
            cRpt.SetDataSource(ds);
            crystalReportViewer1.ReportSource = cRpt;
        }