Ver Mensaje Individual
  #14 (permalink)  
Antiguo 17/05/2011, 22:17
hicolu
 
Fecha de Ingreso: agosto-2009
Ubicación: Lima
Mensajes: 226
Antigüedad: 14 años, 8 meses
Puntos: 3
Respuesta: Problemas con conversor HTML-PHP a PDF

hola pateketrueke, mira estoy usando el CodeIgniter y mi reporte me sale en html y excell, pero lo unico que no me sale es la exportacion de PDF, pero te pongo mi codigo para que lo veas y me indiques en q toy fallando:

function ue($tipo){
$query3= $this->ueall_model->getAllByOficina();
$data['unieje'] = $query3;

if($tipo=="xls"){
header( 'Content-type: application/vnd.ms-excel;charset=latin ');
header('Content-Disposition: attachment; filename=reporte_unidad_ejecutora.xls');
header('Pragma: no-cache');
header('Expires: 0');
$this->load->view('ueall_report',$data);
}else if($tipo=="html"){
// header ('meta http-equiv="Content-Type" content="text/html; charset=utf-8"');
$this->load->view('ueall_report',$data);

}else if($tipo=="pdf"){
header ('meta http-equiv="Content-Type" content="text/pdf; charset=utf-8"');
$content = $this->load->view('ueall_report',$data);
// initialisation de HTML2PDF9.
require_once(dirname(__FILE__).'/html2pdf/html2pdf.class.php');
$html2pdf = new HTML2PDF('P','A4','fr');
$html2pdf->WriteHTML($content);
$html2pdf->Output("reporte0009.pdf", 'D');
}

me sale una hoja en blanco en el PDF

gracias mil!!!!!!