Re: FPDF EN MOZILLA

From: Date: Thu, 18 Oct 2007 22:50:29 +0000
Subject: Re: FPDF EN MOZILLA
References: 1 2  Groups: php.general.es 
Request: Send a blank email to general-es+get-61638@lists.php.net to get a copy of this message
para mas guia mi codigo es este... y funciona PERFECTO en IE... <?php //print_r($_REQUEST); session_cache_limiter('private'); session_start(); define('FPDF_FONTPATH',"font/"); require('fpdf.php'); require ("../lib/connect10g.inc.php"); require ("../lib/function10g.inc.php"); require ("../lib/function.inc.php"); require ("../lib/mensajes.inc.php"); $odbc10g = new Ora10g; $odbc10g->user = $_SESSION['usuario']; $odbc10g->passw = $_SESSION['clave']; $odbc10g->db = $_SESSION["bd"]; // Conexion a la B.D. $conn10g = $odbc10g->conn_ora10g(); class PDF extends FPDF { //Cabecera de página function Header() { $this->Image('img/gane.jpg',8,8,50); $this->SetTextColor(0,0,0); $this->SetFont('Arial','B',15); } function Tabla($Titulos,$Datos) { //Anchuras de las columnas $w=array(22,43,28,40,25,25,33,28); //Cabeceras $this->SetFont('Arial','B',8); $this->SetFillColor(200,200,200); for($k=0;$k<count($Titulos);$k++) $this->Cell($w[$k],4,$Titulos[$k],'LRT',0,'C',1); $this->Ln(); //Datos foreach($Datos as $registro) { $this->SetFont('Arial','I',7); $this->Cell($w[0],4,$registro[0],'LRT',0,'L'); $this->Cell($w[1],4,$registro[1],'LRT',0,'L'); $this->Cell($w[2],4,$registro[2],'LRT',0,'C'); $this->Cell($w[3],4,$registro[3],'LRT',0,'C'); $this->Cell($w[4],4,$registro[4],'LRT',0,'C'); $this->Cell($w[5],4,$registro[5],'LRT',0,'C'); $this->Cell($w[6],4,$registro[6],'LRT',0,'C'); $this->Cell($w[7],4,$registro[7],'LRT',0,'R'); $this->Ln(); } //Línea de cierre $this->Cell(array_sum($w),0,'','T'); } //Pie de página function Footer() { //Posición: a 1,5 cm del final $this->SetY(-15); //Arial italic 8 $this->SetFont('Arial','I',8); //Número de página $PieDePag='Pagina '.$this->PageNo().' de {nb}'; $this->Cell(0,10,$PieDePag,0,0,'C'); } } $pdf=new PDF('l','mm','Letter'); $pdf->AliasNbPages(); $pdf->AddPage(); //LO QUE SEA $pdf->Output(); ?> GRACIAS POR LO QUE ME PUEDAN COLABORAR!!!!! El día 18/10/07, Antonio Galicia <antonio.galicia@gmail.com> escribió: > > On 10/18/07, Carlos Rodriguez <carr1979@gmail.com> wrote: > > > bueno, necesito ayuda por favor con la configuracion para que el fpdf > > funcione en mozilla, ya que llevo mucho tiempo trabajando con el fpdf en > > internet explorer y nunca me ha fallado y ahora que lo necesito usar en > > No debería haber diferencia sólo que IE es un poco más relajado en > cuanto al protocolo. > > > mozilla no me genera los pdf, [image: Risitas] solo me abre una ventana > con > > texto empezando por "%pdf-1.3 3 0 obj <> endobj 4 0 obj <> " y al > > final > > Voy a intentar adivinar ya me diras si mis dotes de pitoniso están al día. > > Estas grabando en disco el resultado (lease el PDF) y depues lo lees > y envias al navegador en lugar de hacer "$pdf->Output();" > directamente. ¿Es así? Suponiendo que sí, ¿estas agregando las > cabeceras? > > -- > Saludos, > Toño > ---- > http://agc.com.mx/antoniogc/blog >

« previous php.general.es (#61638) next »