Ver Mensaje Individual
  #115 (permalink)  
Antiguo 16/06/2005, 14:43
Avatar de Tarecito
Tarecito
 
Fecha de Ingreso: noviembre-2003
Ubicación: Lima - Perú
Mensajes: 443
Antigüedad: 20 años, 5 meses
Puntos: 1
yo he cambiado el codigo q puse más arriba x este otro:

this.TablaColoreada=function TablaColoreada()
{
this.SetFillColor(159,0,0);
this.SetTextColor(255);
this.SetDrawColor(128,0,0);
this.SetLineWidth(.3);
this.SetFont('','B');
//w=new Array(25,25,40,45);
//for(i=0;i<=4;i++)
// this.Cell(w[i],7,cabecerat[i],1,0,"C",1);
this.Cell(20,5,"Fecha",1,0,"C",1);
this.Cell(20,5,"Hora",1,0,"C",1);
this.Cell(40,5,"Origen",1,0,"C",1);
this.Cell(40,5,"Destino",1,0,"C",1);
this.Ln();
this.SetFillColor(224,235,255);
this.SetTextColor(0);
this.SetFont('');

}

basta poner pdf.Tablacoloreada() para q salga la tabla, pero la idea sería usar el w=new Array(25,25,40,45), un parámetro para los titulos de la cabecera y un for. En el código original está con for pero no me funciona, asi q probéhacerlo sin arrays. Pero eso solo muestra la cabecera con color, me falta aún la carga de los datos
__________________
Tarecito