hei friends..
i need to open a table in pdf using the php code. when i am using the code it produce an error message. i includes the fpdf.php. i didnt understand the error. please help me. the code is given below.
include('TESTING/fpdf.php');
class PDF extends FPDF
{
//Simple table
function BasicTable($header)
{
//Header
foreach($header as $col)
$this->Cell(40,7,$col,1);
$this->Ln();
}
}
$pdf=new PDF();
//Column titles
$header=array('ExamId','StudentId','StudentName');
$pdf->SetFont('Arial','',14);
$pdf->AddPage();
$pdf->BasicTable($header);
$pdf->Output();
the error message produced is
Warning: FPDF::include(C:\wamp\www\temp\Vishnu\School Management Project\TESTING/fpdf/helvetica.php) [function.FPDF-include]: failed to open stream: No such file or directory in C:\wamp\www\temp\Vishnu\School Management Project\TESTING\fpdf.php on line 516
Warning: FPDF::include() [function.include]: Failed opening 'C:\wamp\www\temp\Vishnu\School Management Project\TESTING/fpdf/helvetica.php' for inclusion (include_path='.;C:\php5\pear') in C:\wamp\www\temp\Vishnu\School Management Project\TESTING\fpdf.php on line 516
FPDF error: Could not include font metric file
i think this is regarding the SetFont.
please help me...
a v vishnu