i use FPDF to generate Report From Database and i want the title of the Report to be Printed on the header of the PDF generated
my code look like this
function Header()
{
$name="Export PDF";
$this->SetFont('Arial','B',15);
$this->Image('images/pdflogo.png', 5,5,60);
$this->Image('images/hr1.jpg', 10,25,190);
$this->Text(100,25,'$d');
$this->Cell(80);
$this->SetFont('Arial','B',9);
$this->Ln(20);
}
?>
can any body show me how to do this Please !!
Use: $this->Cell(80, 10, 'Example Report Title' );
It will show Example Report Title on every pages header.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.