2010-02-09 10 views
7

In xls-fo fop 0.94 L'uso del keep-insieme con wrap-option = "wrap" ignora l'opzione wrap? C'è un modo per farli funzionare entrambi?xls-fo fop 0.94 Uso del 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> 

risposta

8

keep-together = "sempre" set implicitamente keep-together.within-line = "always" che impedisce sostanzialmente rottura linea. Usa keep-together.within-column = "sempre" invece!

Consulta anche: http://xmlgraphics.apache.org/fop/faq.html#keep-together

BWT, troppo pieno = "scroll" non è supportato da FOP. Questo è rilevante solo per XSL-FO in modalità browser. Non è possibile scorrere su carta.