public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            JRLHolidayPayDataRPT rpt = new JRLHolidayPayDataRPT();

            rpt.Site = this.Site;
            return(rpt);
        }
Ejemplo n.º 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            DataSet dataSetReport = new DataSet();

            dataSetReport = HoliPay.getJRLHolidayPayData(2013);
            dataSetReport.WriteXml("JRLHolidayPayData.xml");
            JRLHolidayPayDataRPT myaclist = new JRLHolidayPayDataRPT();

            myaclist.SetDataSource(dataSetReport);
            ReportViewer myReportViewer = new ReportViewer();

            myaclist.SetParameterValue("Company Name", FTSPayRollBL.Company.getCompanyName());
            myaclist.SetParameterValue("Period", "Year: 2013 ");
            myReportViewer.crystalReportViewer1.ReportSource = myaclist;
            myReportViewer.Show();
        }