Foros del Web » Programando para Internet » PHP »

fpdf internet explorer

Estas en el tema de fpdf internet explorer en el foro de PHP en Foros del Web. Los pdf que me creo en php con fpdf no se ven en i.explorer(salen errores), sin embargo en el mozilla se ven perfectamente. A que ...
  #1 (permalink)  
Antiguo 12/08/2007, 13:07
Avatar de SILVI85  
Fecha de Ingreso: julio-2007
Mensajes: 109
Antigüedad: 16 años, 8 meses
Puntos: 1
Pregunta fpdf internet explorer

Los pdf que me creo en php con fpdf no se ven en i.explorer(salen errores), sin embargo en el mozilla se ven perfectamente.
A que se debe? Os ha ocurrido?
GRACIAS
  #2 (permalink)  
Antiguo 12/08/2007, 16:10
 
Fecha de Ingreso: agosto-2007
Mensajes: 25
Antigüedad: 16 años, 8 meses
Puntos: 0
Re: fpdf internet explorer

Pues a mi se me ven perfectamente con mozilla y con explorer :S
  #3 (permalink)  
Antiguo 13/08/2007, 03:05
Avatar de SILVI85  
Fecha de Ingreso: julio-2007
Mensajes: 109
Antigüedad: 16 años, 8 meses
Puntos: 1
Re: fpdf internet explorer

Que version tienes?
  #4 (permalink)  
Antiguo 13/08/2007, 09:59
 
Fecha de Ingreso: agosto-2007
Mensajes: 25
Antigüedad: 16 años, 8 meses
Puntos: 0
Re: fpdf internet explorer

Tengo IE7. Saludos.
  #5 (permalink)  
Antiguo 13/08/2007, 10:52
Avatar de SILVI85  
Fecha de Ingreso: julio-2007
Mensajes: 109
Antigüedad: 16 años, 8 meses
Puntos: 1
Re: fpdf internet explorer

es el que tengo yo :(

Lo que falla esta aqui pero no se:
$this->Image('logo.png',10,8,50,10);
//Movernos a la derecha
$this->Cell(120);
//Título
$this->SetTextColor(0,100,20);
$this->SetFont('Arial','B',16);
$this->Cell(30,10,'CONSEJERÍA DE EDUCACIÓN',0,0,'C');

//Salto de línea
$this->Ln(10);
$this->Cell(120);
$this->SetTextColor(0,0,0);
$this->SetFont('Times','B',14);
$this->Cell(30,10,'ANEXO',0,0,'C');


$this->Ln(10);
$this->Cell(85);
$this->Cell(100,8,'REGISTRO DE INVENTARIO',1,0,'C');

$this->Ln(10);
$this->Cell(5);
$this->SetFont('Arial','',14);
$this->Cell(15,10,'Centro: ',0,0,'C');
//$this->Cell(15,10);

$this->Cell(130,10,'____________________________________ _________',0,0,'C');
$this->Cell(3);

$this->Cell(30,10,'Curso Escolar: ',0,0,'C');
$this->Cell(1);
$this->Cell(38,10,'______ /______',0,0,'C');
$this->Ln(10);

$this->Cell(5);
$this->Cell(15,10,'Código: ',0,0,'C');
//$this->Cell(15,10);
$this->Cell(1);
$this->Cell(30,10,'__________',0,0,'C');
$this->Cell(1);

$this->Cell(30,10,'Provincia: ',0,0,'C');
$this->Cell(1);
$this->Cell(30,10,'_____________',0,0,'C');
$this->Cell(5);
$this->Cell(30,10,'Localidad: ',0,0,'C');
$this->Cell(1);
$this->Cell(70,10,'___________________________',0,0,'C') ;
$this->Ln(10);
$this->Cell(80);

$this->Cell(100,10,'LIBRO DE ENTRADAS EN EL CURSO ESCOLAR ',0,0,'C');
$this->Cell(10);
$f2="FECHA: ";
$f=date("d/m/Y");
$this->Cell(50,10,$f2.$f,0,0,'C');



$this->Ln(15);
  #6 (permalink)  
Antiguo 14/08/2007, 06:45
 
Fecha de Ingreso: agosto-2007
Mensajes: 25
Antigüedad: 16 años, 8 meses
Puntos: 0
Re: fpdf internet explorer

Te pondré un ejemplo de lo que yo hago por si te sirve:

1. Al empezar el documento pongo
Cita:
//funciones pdf
require_once('html2fpdf.php');
// activate Output-Buffer:
ob_start();
2. Pongo el código php tal cual, donde tengo las tablas que quiero imprimir


3. Añado esto al final
Cita:
// PHP code here //END-OF-PHP code
// Output-Buffer in variable:
$htmlbuffer=ob_get_contents();
// delete Output-Buffer :
ob_end_clean();
$pdf=new HTML2FPDF();
$pdf->SetMargins(40,60,20);
$pdf->AddPage();
$pdf->Image('../Templates/imgcompartidas/logo.jpg',90,8,33);
//$pdf->SetLeftMargin(30);
$pdf->Ln(3);
$pdf->WriteHTML($htmlbuffer);
$pdf->Output(); //Outputs on browser screen
Luego además estan las lineas con la fuente que tu quieras,margen,...

Un saludo.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 19:41.