Esempio n. 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptListadoSanidad rpt = new rptListadoSanidad();

            rpt.Site = this.Site;
            return(rpt);
        }
Esempio n. 2
0
        private void vpListadoSanidad_Load(object sender, EventArgs e)
        {
            try
            {
                Animal_Negocio    animal_Negocio = new Animal_Negocio();
                rptListadoSanidad reporte        = new rptListadoSanidad();

                reporte.SetDataSource(animal_Negocio.RecuperarDTPorTambo(Principal.Tambo.Id_tambo));
                reporte.SetDatabaseLogon("abcd", "123456");
                crv.ReportSource = reporte;
                crv.Refresh();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Ocurrió un error", MessageBoxButtons.OK);
            }
        }