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

            rpt.Site = this.Site;
            return(rpt);
        }
Exemple #2
0
        private void btnViewReport_Click(object sender, EventArgs e)
        {
            Pay_Out_Confirmation_Report_DSE_21_11BAL objBAL = new Pay_Out_Confirmation_Report_DSE_21_11BAL();
            DataTable       data      = new DataTable();
            frmReportViewer rptviewer = new frmReportViewer();
            crPay_Out_Confirmation_Report_DSE_21_11 objrpt = new crPay_Out_Confirmation_Report_DSE_21_11();

            data = objBAL.GetPay_In_Confirmation_ReportData(ddlInstrumentGroup.Text, ddlBranchName.Text, dtpDate.Value);
            objrpt.SetDataSource(data);
            ((TextObject)objrpt.Section2.ReportObjects["txtBranch"]).Text          = ddlBranchName.Text;
            ((TextObject)objrpt.Section2.ReportObjects["txtInstrumentGroup"]).Text = ddlInstrumentGroup.Text;
            rptviewer.crvReportViewer.ReportSource = objrpt;
            rptviewer.Show();
        }