private void Page_Load(object sender, System.EventArgs e)
        {
            // Introducir aquí el código de usuario para inicializar la página
            string sql;
            string matr_ncorr;

            matr_ncorr = Request.QueryString["matr_ncorr"];

            CrystalReport1 reporte = new CrystalReport1();

            sql = EscribirCodigo(matr_ncorr);
            //Response.Write(sql);
            oleDbDataAdapter1.SelectCommand.CommandText = sql;
            oleDbDataAdapter1.Fill(datoAlumno1);


            reporte.SetDataSource(datoAlumno1);
            VerCertificado.ReportSource = reporte;
            //Response.End();
            ExportarPDF(reporte);
        }
        private void Page_Load(object sender, System.EventArgs e)
        {
            // Introducir aqu� el c�digo de usuario para inicializar la p�gina
            string sql;
            string matr_ncorr;
            matr_ncorr = Request.QueryString["matr_ncorr"];

            CrystalReport1 reporte = new CrystalReport1();

            sql = EscribirCodigo(matr_ncorr);
            //Response.Write(sql);
            oleDbDataAdapter1.SelectCommand.CommandText = sql;
            oleDbDataAdapter1.Fill(datoAlumno1);

            reporte.SetDataSource(datoAlumno1);
            VerCertificado.ReportSource = reporte;
            //Response.End();
            ExportarPDF(reporte);
        }
Beispiel #3
0
 public virtual ReportDocument CreateReport()
 {
     CrystalReport1 rpt = new CrystalReport1();
     rpt.Site = this.Site;
     return rpt;
 }