コード例 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            Deposit_Slip rpt = new Deposit_Slip();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
        private void button_print_deposit_Click(object sender, EventArgs e)
        {
            Deposit_Viewer DepositViewer = new Deposit_Viewer();
            Deposit_Slip   cr            = new Deposit_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"];

            text.Text  = txt_DepositAccountName.Text;
            text1.Text = txt_DepositAccountNumber.Text;
            text2.Text = txt_DepositDeposerName.Text;
            text3.Text = Date_Deposit.Text;
            text4.Text = label_DepositTime.Text;
            text5.Text = txt_DepositAmount.Text;
            text6.Text = txt_DepositAmountInWord.Text;
            text7.Text = cb_DepositCurrency.Text;
            text8.Text = txt_DepositNarration.Text;
            DepositViewer.crystalReportViewer1.ReportSource = cr;
            DepositViewer.Show();
        }