2013-08-05 67 views
0

我使用rml作爲openerp7的報告語言。在那裏,我需要在文本之後放置分頁符。RML中的條件分頁符

我的代碼如下

<!-- 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> 

請澄清我。謝謝你的時間。

回答

2

這對我很好。

<!-- 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> 

給它少一個是錯誤的。