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

            rpt.Site = this.Site;
            return(rpt);
        }
        private void button_print_deposit_Click(object sender, EventArgs e)
        {
            Loan_Viewer DepositViewer = new Loan_Viewer();
            Loan_Slip   cr            = new Loan_Slip();
            TextObject  text          = (TextObject)cr.ReportDefinition.Sections["Section3"].ReportObjects["Text47"];
            TextObject  text1         = (TextObject)cr.ReportDefinition.Sections["Section3"].ReportObjects["Text46"];
            TextObject  text2         = (TextObject)cr.ReportDefinition.Sections["Section3"].ReportObjects["Text45"];
            TextObject  text3         = (TextObject)cr.ReportDefinition.Sections["Section3"].ReportObjects["Text44"];
            TextObject  text4         = (TextObject)cr.ReportDefinition.Sections["Section3"].ReportObjects["Text43"];
            TextObject  text5         = (TextObject)cr.ReportDefinition.Sections["Section3"].ReportObjects["Text42"];
            TextObject  text6         = (TextObject)cr.ReportDefinition.Sections["Section3"].ReportObjects["Text41"];
            TextObject  text7         = (TextObject)cr.ReportDefinition.Sections["Section3"].ReportObjects["Text40"];
            TextObject  text8         = (TextObject)cr.ReportDefinition.Sections["Section3"].ReportObjects["Text39"];
            TextObject  text9         = (TextObject)cr.ReportDefinition.Sections["Section3"].ReportObjects["Text3"];

            text.Text  = Date_Loan.Text;
            text1.Text = txt_LoanBorrower.Text;
            text2.Text = txt_LoanAccountNumber.Text;
            text3.Text = txt_LoanAmount.Text;
            text4.Text = txt_LoanAmountInWords.Text;
            text5.Text = cb_LoanCurrency.Text;
            text6.Text = txt_LoanPurpose.Text;
            text7.Text = cb_LoanScheduler.Text;
            text8.Text = date_LoanLimitDate.Text;
            text9.Text = label_LoanTime.Text;
            DepositViewer.crystalReportViewer1.ReportSource = cr;
            DepositViewer.Show();
        }