예제 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            TaxReport rpt = new TaxReport();

            rpt.Site = this.Site;
            return(rpt);
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            ReportDocument rd = new KPRA_RIMS.Reports.TaxReport();

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