Ver Mensaje Individual
  #7 (permalink)  
Antiguo 12/01/2013, 15:28
Avatar de satjaen
satjaen
 
Fecha de Ingreso: septiembre-2012
Ubicación: Jaén (Andalucía)
Mensajes: 893
Antigüedad: 11 años, 8 meses
Puntos: 10
Respuesta: Sacar varias facturas en pdf.

Cita:
Iniciado por arros Ver Mensaje
pon asi aver que te va dar:
Código PHP:
Ver original
  1. while($row = mysql_fetch_array($result)){
  2.      
  3.            $name =$row['name'];
  4. $apellidos = $row['apellidos'];      
  5. $dni = $row['dni'];
  6.  
  7.          
  8. {
  9.         $pdf=new FPDF();
  10.      $pdf->AddPage('P','A4');
  11.          $pdf->Image('firma.jpg' , 80,235, 40, 20,'JPG', '');
  12.          $pdf->SetFont('Arial','B',10);
  13.          $pdf->Ln();
  14.          $pdf->Cell(100,40,'',1,0,'C');////CUADRO ENCABEZADO//////1LINEA
  15.          $pdf->Cell(1,40,'',0,0,'C');///////ESPACIO PEQUENO///////////1LINEA
  16.          $pdf->Cell(85,5,'',1,0,'C');////////MARCA WHIRLPOOL1LINEA
  17.          $pdf->Ln();///////SALTO A 2 LINEA//////
  18.          $pdf->Cell(100,1,'',0,0,'C');///////ESPACIO PEQUENO 2 LINEA IZQ/////////
  19.          $pdf->Cell(1,35,'',0,0,'C');/////ESPACIO PEQUENO///////////2LINEA CENTRO/////
  20.          $pdf->Cell(85,1,'',0,0,'C');////ESPACIO PEQUENO 2 LINEA DRCH/////////
  21.          $pdf->Ln();///////SALTO A 3 LINEA//////
  22.          $pdf->Cell(100,40,'',0,0,'C');////CUADRO ENCABEZADO//////1LINEA
  23.          $pdf->Cell(1,40,'',0,0,'C');///////ESPACIO PEQUENO///////////1LINEA
  24.          $pdf->Cell(85,34,'',1,0,'C');
  25.        
  26.                 $pdf->SetXY(-98,26);$pdf->Cell(0,20,'NºAviso',0,5,'L');$pdf->SetXY(-100,33.5);$pdf->SetFont('Arial','I',9);$pdf->Cell(85,5,$id_aviso,0,0,'C');
  27.                 $pdf->SetFont('Arial','B',8);$pdf->SetXY(-98,30);$pdf->Cell(0,20,'NºFactura WM2 /',0,5,'L');$pdf->SetXY(-100,37.5);$pdf->SetFont('Arial','I',9);$pdf->Cell(85,5,$id_factura,0,0,'C');
  28.                 $pdf->SetFont('Arial','B',8);$pdf->SetXY(-98,34);$pdf->Cell(0,20,'F.Realización',0,5,'L');$pdf->SetXY(-100,41.5);$pdf->SetFont('Arial','I',9);$pdf->Cell(85,5,$realizacion,0,0,'C');
  29.                 $pdf->SetFont('Arial','B',8);$pdf->SetXY(-98,38);$pdf->Cell(0,20,'F.Recepción',0,5,'L');$pdf->SetXY(-100,45.5);$pdf->SetFont('Arial','I',9);$pdf->Cell(85,5,$recepcion,0,0,'C');
  30.                 $pdf->SetXY(30,51.5);$pdf->Cell(30,5,$name,0,0,'L');$pdf->Cell(85,5,$apellidos,0,0,'L');
  31.                 $pdf->SetXY(30,56.5);$pdf->Cell(100,5,$calle,0,0,'L');$pdf->Cell(5,5,$numero,0,0,'L');$pdf->Cell(5,5,$edificio,0,0,'L');$pdf->Cell(10,5,$puerta,0,0,'L');$pdf->Cell(5,5,$piso,0,0,'L');$pdf->Cell(5,5,$letra,0,0,'L');
  32.                 $pdf->SetXY(30,61.5);$pdf->Cell(30,5,$localidad,0,0,'L');$pdf->SetXY(170,61.5);$pdf->Cell(30,5,$provincia,0,0,'L');
  33.                 $pdf->SetXY(160,51.5);$pdf->Cell(30,5,$dni,0,0,'L');
  34.                 $pdf->SetXY(30,66.5);$pdf->Cell(30,5,$telefonos,0,0,'L'); $pdf->SetXY(48,66.5);$pdf->Cell(0,5,'/',0,0,'L');$pdf->SetXY(50,66.5);$pdf->Cell(30,5,$movil,0,0,'L');
  35.              
  36.                 $pdf->SetXY(174,197);$pdf->Cell(30,5,$material,0,0,'C');
  37.                 $pdf->SetXY(174,202.5);$pdf->Cell(30,5,$obra,0,0,'C');
  38.                 $pdf->SetXY(174,208);$pdf->Cell(30,5,$desplazamiento,0,0,'C');
  39.                 $pdf->SetXY(174,213.5);$pdf->Cell(30,5,$base,0,0,'C');
  40.                 $pdf->SetXY(174,224.5);$pdf->Cell(30,5,$iva,0,0,'C');
  41.                 $pdf->SetFont('Arial','I',10);$pdf->SetXY(173,230);$pdf->Cell(30,5,$total,0,0,'C');
  42.              
  43.     }
  44. }
Me da el mismo resultado.