public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrystalReportDailytrans rpt = new CrystalReportDailytrans();

            rpt.Site = this.Site;
            return(rpt);
        }
Example #2
0
        private void DailytransactionReportview_Load(object sender, EventArgs e)
        {
            SqlDataAdapter da = new SqlDataAdapter(SchoolManagement.str, d.con);
            DataSet        ds = new DataSet();

            da.Fill(ds);
            DataRow dr;

            if (ds.Tables[0].Rows.Count > 0)
            {
                dr = ds.Tables[0].Rows[0];
                CrystalReportDailytrans frp = new CrystalReportDailytrans();
                frp.SetDataSource(ds.Tables[0]);
                crystalReportViewer1.ReportSource = frp;
                frp.SetParameterValue("Opening", SchoolManagement.opngbalc);
                frp.SetParameterValue("Closing", SchoolManagement.clngbalc);
                frp.SetParameterValue("date", SchoolManagement.date);
                crystalReportViewer1.Refresh();
            }
        }