Beispiel #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            RelMovChequePre rpt = new RelMovChequePre();

            rpt.Site = this.Site;
            return(rpt);
        }
Beispiel #2
0
        private void BtnImprimir_Click(object sender, EventArgs e)
        {
            BtnImprimir.Enabled = false;
            FrmRelatorios FrmRel = new FrmRelatorios();

            Relatorios.RelMovChequePre RelCheque = new Relatorios.RelMovChequePre();
            DataSet TabRel = new DataSet();

            TabRel = Controle.ConsultaTabela(sSQLFiltro + " ORDER BY T1.DTVENCIMENTO");
            RelCheque.SetDataSource(TabRel.Tables[0]);
            FrmRel.cryRepRelatorio.ReportSource = RelCheque;
            ((CrystalDecisions.CrystalReports.Engine.TextObject)(RelCheque.Section2.ReportObjects["LblPeriodo"])).Text = "Período:" + Dt1.Value.ToShortDateString() + " a " + Dt2.Value.ToShortDateString();
            ((CrystalDecisions.CrystalReports.Engine.TextObject)(RelCheque.Section5.ReportObjects["LblRodaPe"])).Text  = FrmPrincipal.Rel_RodaPe;
            FrmRel.ShowDialog();
            BtnImprimir.Enabled = true;
        }