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

            rpt.Site = this.Site;
            return(rpt);
        }
Example #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            ReportDocument rd = new KPRA_RIMS.Reports.ProductWiseSale();

            rd.SetParameterValue("dt", "'" + Convert.ToDateTime(dateTimePicker1.Text).ToString("yyyy-MM-dd") + "'");
            rd.SetParameterValue("dt1", "'" + Convert.ToDateTime(dateTimePicker2.Text).ToString("yyyy-MM-dd") + "'");

            ReportViewer obj = new ReportViewer(rd);

            obj.Show();
        }