2010-02-09 8 views
7

En xls-fo fop 0.94 El uso del keep-together junto con wrap-option = "wrap" ignora la opción de ajuste? ¿Hay alguna manera de hacer que ambos funcionen?xls-fo fop 0.94 Uso de keep-together con wrap-option = "wrap"

<fo:table-row border="1pt solid black" keep-together="always"> 
     <fo:table-cell> 
      <fo:block overflow="scroll" wrap-option="wrap"> 
      This is a long text It is desired that this text be wrapped in the table cell but just can not make it happen! 
      </fo:block> 
     </fo:table-cell> 
    </fo:table-row> 

Respuesta

8

keep-juntos = "siempre" conjuntos implícitamente a mantener together.within-line = "siempre" que básicamente prohíbe los saltos de línea. Use keep-together.within-column = "always" en su lugar!

Consulte también: http://xmlgraphics.apache.org/fop/faq.html#keep-together

BWT, desbordamiento = "scroll" no es apoyada por la FOP. Eso solo es relevante para XSL-FO en el modo de navegador. No puedes desplazarte por el papel.