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

            rpt.Site = this.Site;
            return(rpt);
        }
Example #2
0
        private void frmSalesReport_Load(object sender, EventArgs e)
        {
            //List<Payment> myPay = db.Payments.ToList();
            //int[] userid = new int[myPay.Count()];
            //int count = 0;
            //foreach (var a in myPay)
            //{
            //    userid[count] = a.iBean_User.User_ID;
            //    count++;

            //}
            Rpt_Sales cb = new Rpt_Sales();

            cb.SetParameterValue("Date1", date1.Date);
            cb.SetParameterValue("Date2", date2.Date);
            // cb.SetParameterValue("userID", userid.ToArray());
            crystalReportViewer1.ReportSource = cb;
        }