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

            rpt.Site = this.Site;
            return(rpt);
        }
        private void btnActiveEmpRegister_Click(object sender, EventArgs e)
        {
            DataSet ds = new DataSet();

            ds.DataSetName = "ActiveEmployeeEPFRegister";
            ds             = clsReports.GetEmployeeWiseEPFDetails(Convert.ToInt32(cmbYear.SelectedValue.ToString()), Convert.ToInt32(cmbMonth.SelectedValue.ToString()));
            if (ds.Tables[0].Rows.Count > 0)
            {
                ds.WriteXml("ActiveEmployeeEPFRegister.xml");
                ActiveEmployeeEPFRegisterRPT myReportViewe = new ActiveEmployeeEPFRegisterRPT();
                myReportViewe.SetDataSource(ds);
                myReportViewe.SetParameterValue("Estate", "Estate:" + myEstate.ListEstates().Rows[0][0].ToString());
                myReportViewe.SetParameterValue("Date", "Year: " + cmbYear.SelectedValue.ToString() + "/  Month: " + cmbMonth.SelectedValue.ToString());
                myReportViewe.SetParameterValue("Company Name", FTSPayRollBL.Company.getCompanyName());
                ReportViewer myReportViewer = new ReportViewer();
                myReportViewer.crystalReportViewer1.ReportSource = myReportViewe;
                myReportViewer.Show();
            }
            else
            {
                MessageBox.Show("No Data To Print", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }