Hi,
Thanks for your reply. I tried this function however no luck. Heres my attempt...
SL
<?php
require('fpdf.php');
class PDF_MC_Table extends FPDF
{
var $widths;
var $angle=0;
var $lastheader;
function my_array_copy($arr) {
$this->lastheader = Array(); //i believe new array() is not a php function
$this->lastheader = $arr;
}
function Header($data)
{
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
my_array_copy($data);
//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//Calculate the height of the row
$nb=0;
for($i=0;$i<count($data);$i++)
$nb=max($nb,$this->NbLines($this->widths[$i],$data[$i]));
$h=4*$nb;
//Issue a page break first if needed
$this->CheckPageBreakH($h+$h);
//Draw the cells of the row
for($i=0;$i<count($data);$i++)
{
$w=$this->widths[$i];
//Save the current position
$x=$this->GetX();
$y=$this->GetY();
//Draw the border
$this->Rect($x,$y,$w,$h);
//Print the text
$this->MultiCell($w,4,$data[$i],1,'C');
//Put the position to the right of the cell
$this->SetXY($x+$w,$y);
}
//Go to the next line
$this->Ln($h);
}
function otherFunction($copiedarray){
}