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

            rpt.Site = this.Site;
            return(rpt);
        }
        private void SalesViewbtn_Click(object sender, EventArgs e)
        {
            BalloonKingdomDataSetTableAdapters.OrderlineTableAdapter acct = new WindowsApplication1.BalloonKingdomDataSetTableAdapters.OrderlineTableAdapter();
            DataTable datatable = acct.Account(Convert.ToDateTime(AccountRcvD1.Value), Convert.ToDateTime(AccountRcvD2.Value));


            AccountReceive rpt = new AccountReceive();

            AccountRcv account = new AccountRcv();

            account.SetDataSource(datatable);

            rpt.Acc(account);
            rpt.Show();
        }
 public void Acc(AccountRcv rpt)
 {
     crystalReportViewer1.ReportSource = rpt;
 }