Ver Mensaje Individual
  #246 (permalink)  
Antiguo 27/04/2009, 10:46
Avatar de Shiryu_Libra
Shiryu_Libra
Colaborador
 
Fecha de Ingreso: febrero-2007
Ubicación: Cantando "Screenager" en "Kirafa Kaput"
Mensajes: 3.614
Antigüedad: 17 años, 2 meses
Puntos: 88
Respuesta: generar pdf desde asp

al parecer te hace salto de linea....

mira, en la pagina de FDPF, en la seccion de scripts
hay uno que podria servirte...
ahora, este script esta en PHP, se necesitaria intentar o cambiarlo a ASP o entenderlo

el ejemplo usa "< >" para definir donde se utilizara el cambio de estilo de la letra...
Código php:
Ver original
  1. $pdf=new PDF();
  2. $pdf->Open();
  3. $pdf->AddPage();
  4. $pdf->SetFont('Arial','',12);
  5. $text  = "Let's show... \n\n";
  6. $text .= " [This is a cell][and another cell]\n\n";
  7. $text .= "<This is a bold sentence> and another non bold sentence.";
  8. $pdf->WriteText($text);
  9. $pdf->Output();
  10. ?>
ahora, la logica dice, dentro de la funcion, buscaremos "<" como inicio de la funcion, entonces
Código php:
Ver original
  1. if (strpos($text,'<')!==false)
  2.         {
  3.             $this->Write(5,substr($text,0,strpos($text,'<')));
  4.             $intPosIni = strpos($text,'<');
  5.             $intPosFim = strpos($text,'>');
  6.             $this->SetFont('','B');
  7.             $this->WriteText(substr($text,$intPosIni+1,$intPosFim-$intPosIni-1));
  8.             $this->SetFont('','');
  9.             $this->WriteText(substr($text,$intPosFim+1,strlen($text)));
  10.         }

viendo esto, necesitariamos intentar traducir esta seccion de codigo a ASP

algo de practica extra, no crees?
__________________
"Eres parte del problema, parte de la solucion o parte del paisaje"
Un Saludo desde Desierto de Altar, Sonora, MX.
Shiryu_libra