예제 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            feesReceiptsx rpt = new feesReceiptsx();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void ReceiptFees_Load(object sender, EventArgs e)
        {
            dessy.opencon();
            string         query  = "SELECT * FROM feesRec ORDER BY id DESC";
            SqlDataAdapter da     = new SqlDataAdapter(query, dessy.returnCon());
            DataSet        mydata = new DataSet();

            da.Fill(mydata, "feesRec");
            feesReceiptsx datax = new feesReceiptsx();

            datax.SetDataSource(mydata);
            crystalReportViewer1.ReportSource = datax;
            dessy.closeCon();
        }