Amigos!! voy mejorando logre imprimir esta variable, el tema ahora es que estoy probando de poner varias variables en el encabezado, yo estoy probando lo siguiente:
class PDF extends FPDF
{
function Header()
{
global $title;
global $dbi;
global $nombre;
global $apellido;
global $razon;
global $cuit;
global $calle;
global $numero;
$decimales=2;
$h=4;
$sqllegajo="SELECT emp_legajo,emp_nombre,emp_apellido FROM hbr_empleado WHERE emp_id='3'";
$resulegajo=mysql_query($sqllegajo,$dbi);
$filalegajo=mysql_fetch_array($resulegajo);
$title=$filalegajo["emp_legajo"];
$nombre=$filalegajo["emp_nombre"];
$apellido=$filalegajo["emp_apellido"];
$this->SetFont('Arial','I',7);
$this->Cell(10);
$this->Cell(15,5,$title,0,0,'C');
$this->Ln(20);
$this->SetFont('Arial', 'B', 9);
$this->Cell(0,$h*3,"RENDICION DE GASTOS DEL DIA HASTA EL ",0,1,'C');
this->Cell(130,$h,$razon,0,0);
$this->Cell(17,$h,"Importe",0,0);
$this->Cell(17,$h,"Parciales",0,0);
$this->Cell(17,$h,"",0,0);
$this->Cell(15,$h,"Tipo",0,1);
$this->Cell(0,0,"",1,1);
$this->SetFont('Arial', '', 9);
Aca me imprimi todo menos $razon, que me esta faltando ahora???
Graciassssssssssss |