Example #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            Incomereportd rpt = new Incomereportd();

            rpt.Site = this.Site;
            return(rpt);
        }
Example #2
0
        private void IncomeReport_Load(object sender, EventArgs e)
        {
            Incomereportd report = new Incomereportd();

            IncomeDataSetTableAdapters.DataTable1TableAdapter ta = new DentalCare.IncomeDataSetTableAdapters.DataTable1TableAdapter();
            IncomeDataSet.DataTable1DataTable table = ta.GetData();
            report.SetDataSource(table.DefaultView);
            crystalReportViewer1.ReportSource = report;
            crystalReportViewer1.Refresh();
        }