private void button1_Click(object sender, EventArgs e)
        {
            DataTable dt = deductionDebts.getDetailsDeductionDebitordeatails(Year, Month, Division);
            DataSet   ds = new DataSet();

            ds.Tables.Add(dt);



            if (ds.Tables[0].Rows.Count > 0)
            {
                ds.WriteXml("DeductionDebtsDetails.xml");

                RecoveryDebtsDatailsRPT myRPT = new RecoveryDebtsDatailsRPT();
                myRPT.SetDataSource(ds);
                myRPT.SetParameterValue("CompanyName", FTSPayRollBL.Company.getCompanyName());
                myRPT.SetParameterValue("Division", "DivisionID : " + Division);
                myRPT.SetParameterValue("Year", "Year : " + Year);
                myRPT.SetParameterValue("Month", "Month : " + Month);

                ReportViewer myViewer = new ReportViewer();
                myViewer.crystalReportViewer1.ReportSource      = myRPT;
                myViewer.crystalReportViewer1.ShowRefreshButton = false;
                myViewer.Show();
            }
        }
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            RecoveryDebtsDatailsRPT rpt = new RecoveryDebtsDatailsRPT();

            rpt.Site = this.Site;
            return(rpt);
        }