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

            rpt.Site = this.Site;
            return(rpt);
        }
Пример #2
0
        private void vpReporteReproduccion_Load(object sender, EventArgs e)
        {
            try
            {
                rptReporteReproduccionPorFechas2 reporte = new rptReporteReproduccionPorFechas2();

                reporte.SetParameterValue("@id_tambo", Principal.Tambo.Id_tambo);
                reporte.SetParameterValue("@FechaDesde", Fecha_Desde);
                reporte.SetParameterValue("@FechaHasta", Fecha_Hasta);
                reporte.SetDatabaseLogon("abcd", "123456");
                crv.ReportSource = reporte;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Ocurrió un error", MessageBoxButtons.OK);
            }
        }