Mi problema radica que tengo este codigo para pdf con la libreria FPDF
Código PHP:
Ver original
<?php require('fpdf.php'); class PDF extends FPDF { { /*include('Connections/t2.php');*/ $this->Cell(167,23," ",0,0,'C'); $this->Ln(4); $this->SetFont('Arial','B',13); $this->Cell(167,23,"REPORTE DE ALUMNOS DE UPI --- FECHA: ".$fecha." ",0,0,'C'); $this->Ln(4); $this->SetFont('Arial','',11); $this->Cell(167,23,"Reporte General del Listado de Alumnos",0,0,'C'); $this->Ln(4); $this->SetFont('Arial','',8); $this->Ln(14); } //Load data function LoadData($file) { //Read file lines foreach($lines as $line) return $data; } //Colored table function FancyTable($header,$data) { //Colors, line width and bold font $this->SetFillColor(255,0,0); $this->SetTextColor(255); $this->SetDrawColor(128,0,0); $this->SetLineWidth(.3); $this->SetFont('','B'); //Header $this->Cell($w[$i],7,$header[$i],1,0,'C',true); $this->Ln(); //Color and font restoration $this->SetFillColor(224,235,255); $this->SetTextColor(0); $this->SetFont(''); //Data $fill=false; foreach($data as $row) { $this->Cell($w[0],6,$row[0],'LR',0,'L',$fill); $this->Cell($w[1],6,$row[1],'LR',0,'L',$fill); $this->Cell($w[2],6,$row[2],'LR',0,'L',$fill); $this->Cell($w[3],6,$row[3],'LR',0,'C',$fill); $this->Cell($w[4],6,$row[4],'LR',0,'R',$fill); $this->Cell($w[5],6,$row[5],'LR',0,'R',$fill); $this->Ln(); $fill=!$fill; } } } $pdf=new PDF('L','mm','Legal'); //Column titles //Data loading //*** Load MySQL Data ***// include("config.php"); $strSQL = "SELECT * FROM alumno"; } //************************// $pdf->SetFont('Arial','',10); //*** Table 3 ***// $pdf->AddPage(); $pdf->Image('image/upi_peque.gif',80,8,33); $pdf->Ln(35); $pdf->FancyTable($header,$resultData); $pdf->Output(); ?>
Lo que quiero es que mi encabezado de la tabla, me salga en todas las nuevas paginas. Osea que este:
Código PHP:
Ver original
>Porque actualmente me sale corrido los registros y quiero que se visualizen estos nombres al comienzo de cada pagina.
Muchisisimas si pueden ayudarme. Se los agradecere enormemente.