Exemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            RPTSale rpt = new RPTSale();

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
        private void button4_Click(object sender, EventArgs e)
        {
            ReportDocument rd = new KPRA_RIMS.Reports.RPTSale();

            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();
        }