public virtual ReportDocument CreateReport() { CrystalReportPagare rpt = new CrystalReportPagare(); rpt.Site = this.Site; return(rpt); }
private void Page_Load(object sender, System.EventArgs e) { // Introducir aquí el código de usuario para inicializar la página string sql; string post_ncorr; post_ncorr = Request.QueryString["post_ncorr"]; sql = EscribirCodigo(post_ncorr); //Response.Write(sql); //Response.End(); CrystalReportPagare reporte = new CrystalReportPagare(); oleDbDataAdapter1.SelectCommand.CommandText = sql; oleDbDataAdapter1.Fill(datosPagare1); reporte.SetDataSource(datosPagare1); VerPagare.ReportSource = reporte; ExportarPDF(reporte); }
public virtual ReportDocument CreateReport() { CrystalReportPagare rpt = new CrystalReportPagare(); rpt.Site = this.Site; return rpt; }
private void Page_Load(object sender, System.EventArgs e) { // Introducir aqu� el c�digo de usuario para inicializar la p�gina string sql; string post_ncorr; post_ncorr = Request.QueryString["post_ncorr"]; sql = EscribirCodigo(post_ncorr); //Response.Write(sql); //Response.End(); CrystalReportPagare reporte = new CrystalReportPagare(); oleDbDataAdapter1.SelectCommand.CommandText = sql; oleDbDataAdapter1.Fill(datosPagare1); reporte.SetDataSource(datosPagare1); VerPagare.ReportSource = reporte; ExportarPDF(reporte); }