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

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

            dataSetReport = myReports.getEPFETFForRemmittence(Convert.ToInt32(cmbYear.Text), Convert.ToInt32(cmbMonth.SelectedValue.ToString()));
            dataSetReport.WriteXml("EPFETFForRemmittence.xml");
            Rpt_EPF_monthly_report myaclist = new Rpt_EPF_monthly_report();

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

            myaclist.SetParameterValue("companyname", FTSPayRollBL.Company.getCompanyName());
            myaclist.SetParameterValue("companyaddress", FTSPayRollBL.Company.getCompanyAddress());
            myaclist.SetParameterValue("period", cmbMonth.Text + " of " + cmbYear.Text);
            myReportViewer.crystalReportViewer1.ReportSource = myaclist;
            myReportViewer.Show();
        }