Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/01/2011, 08:20
solarconfinement
 
Fecha de Ingreso: octubre-2010
Mensajes: 18
Antigüedad: 13 años, 6 meses
Puntos: 0
Problema con ezpdf

Saludos, la razon por la que solicito ayuda, es porque cree un reporte con ezpdf, le paso los parametros y en mi servidor local funciona de maravillas, pero al subirlo a la red me lo muestra de forma 'desordenada' aca adjunto las imagenes:

aqui cuando estoy en localhost:
http://img211.imageshack.us/img211/6963/80952087.png
aqui cuando la tengo ya montada en mi sitio web:
http://img28.imageshack.us/img28/5615/43197885.png

el codigo:

Código PHP:
<?php
ob_end_clean
();
require_once(
'class.ezpdf.php');
$numero=$_GET['recordID'];
$pdf=& new Cezpdf('a4');
$pdf->selectFont('../fonts/courier.afm');
$pdf->ezSetCmMargins(1,1,1.5,1.5);
include 
"conex_bd.php";
$queEmp "SELECT * from pedidos2 INNER JOIN articul1 ON pedidos2.idart1=articul1.codigo
where pedidos2.numero='$numero' order by ITEM"
;
$result=mysql_query("SELECT * FROM pedidos1 where numero='$numero'",$conexion); //trae informacion de cabecera
if(!$result){
die(
"el query fallo" mysqlerror());}
while (
$row mysql_fetch_array($result)){
    
$documento=$row['DOCUMENTO'];
    
$vendedor=$row['IDPRV1VENDEDOR'];
    
$fechaemision=$row['FECHAEMISION'];
    
$idcliente=$row['IDCLI1'];
    
$observacion=$row['OBSERVACION'];
    
$referencia=$row['SUREFERENCIA'];
    
$categoria=$row['CATEGORIA'];
$nombrecliente=mysql_query("SELECT * FROM cliente1 WHERE codigo='$idcliente'"$conexion);//trae el nombre del cliente
    
while ($rownombreclientemysql_fetch_array($nombrecliente)){
        
$cliente=$rownombrecliente['Nombre'];
    
$resEmp mysql_query($queEmp$conexion) or die(mysql_error());
$totEmp mysql_num_rows($resEmp);
$ixx 0;
   while(
$datatmp mysql_fetch_assoc($resEmp)) {
          
$ixx $ixx+1;
          
$data[] = array_merge($datatmp, array('num'=>$ixx));
     }
        
$titles = array(
       
'ITEM'=>'<b>Item</b>',
       
'CODIGO'=>'<b>Codigo</b>',
        
'CANTIDAD'=>'<b>Cantidad</b>',
        
'PRECIO'=>'<b>Precio</b>',
        
'MONTOBASE'=>'<b>Base</b>',
        
'IMPUESTOVENTA'=>'<b>IVA(%)</b>'
        
'MONTOIMPUESTO'=>'<b>MontoIVA</b>',   
        
'SUBTOTAL'=>'<b>Sub-Total</b>',   
        
'DESCRIPCION'=>'<b>Descripcion</b>',   
                          );
      
$options = array(
       
'shadeCol'=>array(0.9,0.9,0.9),
      
'xOrientation'=>'center',
         
'width'=>500
          
);
            
      
$txttit "<b></b>\n";
         
$txttit.= "Detalle de orden \n";
         
$txttit.= "Documento: $documento Fecha: $fechaemision Vendedor: $vendedor\n";
         
$txttit.= "Cliente: $cliente IDCliente: $idcliente \n";
         
$txttit.= "Observacion: $observacion  \n";
         
$txttit.= "Referencia: $referencia  \n";
         
$txttit.= "Categoria: $categoria  \n";
         
         
   
      
   
      
$pdf->ezText($txttit12);
      
$pdf->ezTable($data$titles''$options);
      
$pdf->ezText("\n\n\n"10);
      
$pdf->ezText("<b>Fecha:</b> ".date("d/m/Y"), 10);
      
$pdf->ezText("<b>Hora:</b> ".date("H:i:s")."\n\n"10);
      
$pdf->ezStream();
  }
}
?>
Agradezco mucho de antemano, la ayuda que me puedan prestar,

Saludos.