Foros del Web » Programando para Internet » PHP »

R&os

Estas en el tema de R&os en el foro de PHP en Foros del Web. Buen dia a todos, solo tengo una duda, como puedo poner la hoja horizontalmente con R&OS...
  #1 (permalink)  
Antiguo 15/05/2012, 15:36
 
Fecha de Ingreso: noviembre-2011
Ubicación: Paris
Mensajes: 450
Antigüedad: 12 años, 5 meses
Puntos: 7
R&os

Buen dia a todos, solo tengo una duda, como puedo poner la hoja horizontalmente con R&OS
  #2 (permalink)  
Antiguo 15/05/2012, 15:46
Avatar de gjx2  
Fecha de Ingreso: agosto-2008
Ubicación: R.D
Mensajes: 1.153
Antigüedad: 15 años, 8 meses
Puntos: 139
Respuesta: R&os

Intentalo cuando estas instanciando la clase.

Código PHP:
Ver original
  1. $pdf =& new Cezpdf('letter','landscape');


Saludos.
  #3 (permalink)  
Antiguo 15/05/2012, 15:57
 
Fecha de Ingreso: noviembre-2011
Ubicación: Paris
Mensajes: 450
Antigüedad: 12 años, 5 meses
Puntos: 7
Respuesta: R&os

Hola gracias por tu respuesta, pero no logro conseguirlo me sale todo en blanco

Este es mi codigo
Código PHP:
<?php
session_start
();




include (
'class.ezpdf.php');
$pdf =& new Cezpdf();
$pdf->ezSetCmMargins(1,2,1.2,1.2); 
$pdf->selectFont('./fonts/Helvetica');

$tams=12;
$tamg=14;
$tamxl=18;
$var1=605;
$var2=605;
$alumnos=0;
$total=0;

            

$pdf->ezSetY(780);
$pdf->ezImage("Logo_.jpg""-10""50""none","left");
$pdf->ezSetY(800);
$pdf->ezText('Lorem Ipsum',20,array('justification'=>'center'));
$pdf->ezSetY(775);
$pdf->ezText('Lorem Ipsum',$tamxl,array('justification'=>'center'));
$pdf->ezSetY(755);
$pdf->ezText('Lorem Ipsum',$tamxl,array('justification'=>'center'));
$pdf->ezSetY(700);
$pdf->ezText('"ELorem Ipsum"',$tamg,array('justification'=>'center'));
$pdf->addText(50,650,16,'Reporte General');
$pdf->addText(40,600,$tamxl,'__________________________________________________');

  
 
$link=mysql_connect("localhost","root","root"); 
        
mysql_select_db("base"$link);
       
$registros=mysql_query("select * from alu ",$link) or
       die(
"Problemas en el select:".mysql_error());



       

      
       

       

                while(
$reg=mysql_fetch_array($registros)){
                
$id=$reg['id']; 
                
$mat=$reg['matricula']; 
                
$nom=$reg['nombre']; 
                
$gru=$reg['grupo']; 

                
$tabla[]= array("id"=>$id,"matricula"=>$mat"nombre"=>$nom,"grupo"=>$gru); 

         }

   

$pdf->addText(50,550,13,'Matricula: '.$mat);
$pdf->addText(50,535,13,'Nombre: '.$nom);
$pdf->addText(50,520,13,'Grupo: '.$grup);
 
$pdf->addText(42.5,85,$tams,'___________________________________________________________________________');
 
$pdf->addText(50,66,10,'Lorem Ipsum');
  
$pdf->addText(50,53,10,'Lorem Ipsum');
 
$pdf->addText(50,40,10,'Lorem Ipsum');
 
$pdf->addText(470,40,10,'Página 1 de 2');
 
 
$pdf->ezSetDy(-200);//mover tabla de posicion
 
$pdf->ezTable($tabla,2,'',array('xPos'=>'center','xOrientation'=>'center','cols'=>array('No. de reactivo'=>array('justification'=>'center'),'No. de Aciertos'=>array('justification'=>'center'),'No. de Errores'=>array('justification'=>'center'),'% de Aciertos'=>array('justification'=>'center'),'% de Errores'=>array('justification'=>'center'))));
//---------tabla final ---------- 


 
$pdf->ezStream();
?>
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 02:10.