2013-08-05 8 views
0

J'utilise rml comme langage de génération de rapports pour openerp7. Là, je voudrais mettre un saut de page après un texte.Saut de page conditionnel dans RML

Mon code est ci-dessous

<!-- Here i am printing a table which consumes half of the page --> 
    <b> This is the first page Text. After this all should come in the second page </b> 

    <blockTable style="Table4"> 
    <condPageBreak height="8cm"/> <!--This doesn't work. even if i give any value to the height attribute --> 
     <tr> 
     <td> 
      <para style="P26"> Text as a paragraph </para> 
     </td> 
    </tr> 
    </blockTable> 

Veuillez me clarifient. Merci pour votre temps.

Répondre

2

Cela fonctionne très bien pour moi.

<!-- Here i am printing a table which consumes half of the page --> 
    <b> This is the first page Text. After this all should come in the second page </b> 

<condPageBreak height="9cm"/> 
    <blockTable style="Table4"> 
    <tr> 
    <td> 
     <para style="P26"> Text as a paragraph </para> 
    </td> 
</tr> 
</blockTable> 

C'était une erreur de donner moins.