Esempio n. 1
0
        public void relatorioEmBranco(int par)
        {
            switch (par)
            {
            case 0:
                RelatorioBrancoLactacao rbl = new RelatorioBrancoLactacao();
                crystalReportViewer1.ReportSource     = rbl;
                crystalReportViewer1.SelectionFormula = "";
                break;

            case 1:
                RelatorioBrancoVacinacao rbv = new RelatorioBrancoVacinacao();
                crystalReportViewer1.ReportSource     = rbv;
                crystalReportViewer1.SelectionFormula = "";
                break;

            case 2:
                RelatorioBrancoCruzamento rbc = new RelatorioBrancoCruzamento();
                crystalReportViewer1.ReportSource     = rbc;
                crystalReportViewer1.SelectionFormula = "";
                break;

            default:
                break;
            }
        }
Esempio n. 2
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            RelatorioBrancoCruzamento rpt = new RelatorioBrancoCruzamento();

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