|    
			
				01/10/2008, 12:20
			
			
			  | 
  |   |  |  |  |  Fecha de Ingreso: junio-2006 Ubicación: Concepción, Chile 
						Mensajes: 475
					 Antigüedad: 19 años, 4 meses Puntos: 4 |  | 
  |  Problema de alineación con PHPRTF  
  Ok tengo el siguiente codigo, estoy usando la clase PHPRTF (http://www.phprtf.com/ )  
El asunto es que tengo tres parrafos los cuales no he logrado alinear de ninguna manera, lo unico que nesecito hacer es dejar dos de ellos con alineacion a la izq y el tercero a la derecha.  
El codigo:  
Código:
  <php?require_once("rtf/Rtf.php");
$parF = new ParFormat();
$rtf = new Rtf();
$header = &$rtf->addHeader('first');
$header->addImage('img/chile.png', new ParFormat('right'));
$sect = &$rtf->addSection();
$sect->writeText("<b>Concepción, $dia de $mes $ano</b>
", new Font(18), new ParFormat('left'));
$par = new ParFormat('left');
$par->setIndentLeft(4);
$par->setIndentRight(5);
$par->setBorders(new BorderFormat(1, '#000000'));
$sect->writeText('', new Font, new ParFormat());
$sect->writeText("<b> Vendedora</b>",new Font(14, 'Times New Roman', '#000080'), $par);
$sect->writeText("<b> $ape_ven $nom_ven</b>", new Font(14, 'Times New Roman'), $par);
$sect->writeText('', new Font, new ParFormat());
$sect->writeText("<b> Promotora</b>",new Font(14, 'Times New Roman', '#000080'), $par);
$sect->writeText("<b> $ape_promo $nom_promo</b>", new Font(14, 'Times New Roman'), $par);
$sect->writeText('', new Font, new ParFormat());
$sect->writeText("<b> $ape_cliente $nom_cliente</b>",new Font(14, 'Times New Roman'), $par);
$sect->writeText(" $dir $n",new Font(14, 'Times New Roman'), $par);
$sect->writeText(" $nap $local",new Font(14, 'Times New Roman'), $par);
$sect->writeText(" $tel",new Font(14, 'Times New Roman'), $par);
$null = null;
$sect->writeText("<b>VENTA Nº  $nventas</b>
", new Font(14, 'Times New Roman', '#000080'), new ParFormat('left'));
$sect->writeText('<b>FECHA NACIMIENTO</b>', new Font(14, 'Times New Roman', '#000080'), new ParFormat('left'));
$sect->writeText("  <b>$dian/$mesn/$anon</b>
", new Font(14), $null);
$sect->writeText('<b>MEDIDAS CAMA</b>', new Font(14, 'Times New Roman', '#000080'), new ParFormat('left'));
$sect->writeText("  <b>$t_cama</b>
", new Font(14), $null);
$sect->writeText("<b>ARTICULO - PRECIO</b>
", new Font(14, 'Times New Roman', '#000080'), new ParFormat('left'));
$sect->writeText("  <b>$art1 -  $ $precio1</b>
", new Font(14), $null);
$sect->writeText("  <b>$art2 -  $ $precio2</b>
", new Font(14), $null);
$sect->writeText("  <b>$art2 -  $ $precio2</b>
", new Font(14), $null);
$sect->writeText("  <b>$art3 -  $ $precio3</b>
", new Font(14), $null);
$sect->writeText("  <b>$art4 -  $ $precio4</b>
", new Font(14), $null);
$sect->writeText("  <b>$art5 -  $ $precio5</b>
", new Font(14), $null);
$sect->writeText("  <b>$art6 -  $ $precio6</b>
", new Font(14), $null);
$sect->writeText("  <b>$art7 -  $ $precio7</b>
", new Font(14), $null);
$sect->writeText("  <b>$art8 -  $ $precio8</b>
", new Font(14), $null);
$sect->writeText("<b>TOTAL VENTA   $total</b>
", new Font(14, 'Times New Roman', '#000080'), new ParFormat('left'));
$sect->writeText('<b>FORMA DE PAGO </b>', new Font(14, 'Times New Roman', '#000080'), new ParFormat('left'));
$sect->writeText('', new Font, new ParFormat());
$sect->writeText("<b> Vendedora</b>",new Font(14, 'Times New Roman', '#000080'), $par);
$rtf->sendRtf("$nventas");
?>
    |