Bonjour à tous,

Je rencontre quelques difficultés concernant la fusion de plusieurs cellules dans mon tableau.
Pour info j'ai un xml en entré et je ressort un PDF avec SOP.

Je m'explique, je fusionne 3 cellules de haut en bas, cela fonctionne impeccable.
Cependant, si j'ajoute un text dans cette cellule fusionnée, mon pdf ressort avec une ligne de tableau en plus!!

voici mon code :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
 
      <fo:table-column column-width="1cm" border-style='solid' border-width="2pt"/>
      <fo:table-column column-width="6.7cm" border-style='solid' border-width="3pt"/>
      <fo:table-column column-width="6.7cm" border-style='solid' border-width="3pt"/>
      <fo:table-column column-width="4.5cm" border-style='solid' border-width="2pt" />
 
      <fo:table-body >
       <fo:table-row background-color="rgb(0,56,130)" border-style='solid' border-width="1pt">
          <fo:table-cell number-rows-spanned="3">
            <fo:block/>
          </fo:table-cell>
          <fo:table-cell >
            <fo:block text-align-last="left" font-size="11pt" color="rgb(255,255,255)">cell1..........</fo:block>
          </fo:table-cell>
          <fo:table-cell>                                                                                
            <fo:block text-align-last="left" font-size="11pt" color="rgb(255,255,255)">cell2............</fo:block>
          </fo:table-cell>
          <fo:table-cell number-rows-spanned="3">
           <fo:block>marche pas</fo:block>
          </fo:table-cell>
        </fo:table-row>
 
       <fo:table-row background-color="rgb(0,56,130)" border-style='solid' border-width="1pt">
          <fo:table-cell>                                                                            
            <fo:block text-align="left" font-size="11pt" color="rgb(255,255,255)">cell3..............</fo:block>
          </fo:table-cell>
          <fo:table-cell>
            <fo:block text-align="left" font-size="11pt" color="rgb(255,255,255)">cell4..............</fo:block>
          </fo:table-cell>
        </fo:table-row>
 
       <fo:table-row background-color="rgb(0,56,130)" border-style='solid' border-width="1pt">
          <fo:table-cell number-columns-spanned="2">
            <fo:block text-align="left" font-size="11pt" color="rgb(255,255,255)">cell5..............</fo:block>
          </fo:table-cell>
        </fo:table-row>
 
     </fo:table-body>
  </fo:table>
Voila

Je fusionne des le debut 3 cellules sans les remplir, et cela fonctionne impec, et en bout de tableau je fais pareil en voulant ajouter un text, mais la c'est mort. si pas de text c'est bon, sinon le moindre caractere rajoute une ligne en plus!!!

Si vous avez une idée je suis preneur.