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

            rpt.Site = this.Site;
            return(rpt);
        }
        private void PayableViewbtn_Click(object sender, EventArgs e)
        {
            BalloonKingdomDataSetTableAdapters.PurchaseTableAdapter puro = new WindowsApplication1.BalloonKingdomDataSetTableAdapters.PurchaseTableAdapter();
            DataTable datatable = puro.POBeginEndDate(Convert.ToDateTime(AccountPDate1.Value), Convert.ToDateTime(AccountPDay2.Value));



            AccountPay rpt = new AccountPay();

            AccountPaya account2 = new AccountPaya();

            account2.SetDataSource(datatable);
            rpt.Paya(account2);

            rpt.Show();
        }
Пример #3
0
 public void Paya(AccountPaya rpt)
 {
     crystalReportViewer1.ReportSource = rpt;
 }