Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/12/2011, 13:14
Avatar de andersonmoreno
andersonmoreno
 
Fecha de Ingreso: octubre-2011
Ubicación: armenia
Mensajes: 18
Antigüedad: 12 años, 6 meses
Puntos: 0
Pregunta Como puedo des habilitar la salida estándar de Zend

Saludos...
yo de nuevo molestando...
lo que sucede es que cuando voy a crear un PDF dinámico me muestra el siguiente error

¡SE HA PRODUCIDO UN ERROR AL CARGAR EL DOCUMENTO PDF!

ya le des habilite en estilo pero aun así continua el error sera que alguien tiene una respuesta de como solucionar este error
este es mi código
Código PHP:
Ver original
  1. $this->_helper->viewRenderer->setNoRender(true);
  2. $this->_helper->viewRenderer->setNeverRender(true);
  3. $this->_helper->Layout->disableLayout();
  4. require_once  '/../library/pdfClass/class.ezpdf.php';
  5.         $pdf = new Cezpdf('a4');
  6.         $pdf->selectFont('/../library/pdfClass/fonts/courier.afm');
  7.         $pdf->ezSetCmMargins(1, 1, 1.5, 1.5);
  8.         $conexion = mysql_connect("localhost", "root", "clave");
  9.         mysql_select_db("base de datos", $conexion);
  10.         $queEmp = "SELECT u.*,c.nombre as cargo, f.firma as firma FROM usuarios u, cargos c, firmas f
  11. WHERE c.idcargos = u.idcargos
  12. AND f.idfirmas = u.idfirmas";
  13.         $resEmp = mysql_query($queEmp, $conexion) or die(mysql_error());
  14.         $totEmp = mysql_num_rows($resEmp);
  15.         $ixx = 0;
  16.         while ($datatmp = mysql_fetch_assoc($resEmp)) {
  17.             $ixx = $ixx + 1;
  18.             $data[] = array_merge($datatmp, array('num' => $ixx));
  19.         }
  20.         $titles = array('identificacion' => '<b>IDENTIFICACION</b>',
  21.         'nombres' => '<b>NOMBRES</b>',
  22.         'apellidos' => '<b>APELLIDOS</b>',
  23.         'correo' => '<b>CORREO</b>',
  24.         'direccion' => '<b>DIRECCION</b>',
  25.         'telefeno' => '<b>TELEFONO</b>',
  26.         'firma' => '<b>FIRMA</b>',
  27.         'cargo' => '<b>CARGO</b>');
  28.         $options = array('shadeCol' => array(0.9, 0.9, 0.9),
  29.         'xOrientation' => 'center', 'width' => 500);
  30.         $txttit = "<b>INFORME DE USUARIOS</b>\n";
  31.         $txttit .= "CENTRO PARA EL DESARROLLO DE LA CONSTRUCCION Y LA INDUSTRIA \n";
  32.         $pdf->ezText($txttit, 12);
  33.         $pdf->ezTable($data, $titles, '', $options);
  34.         $pdf->ezText("\n\n\n", 10);
  35.         $pdf->ezText("<b>Fecha:</b> " . date("d/m/Y"), 10);
  36.         $pdf->ezText("<b>Hora:</b> " . date("H:i:s") . "\n\n", 10);
  37.         $pdf->ezStream();