【问题标题】:Conditional Page Break in RMLRML 中的条件分页符
【发布时间】:2026-02-13 17:00:02
【问题描述】:

我使用 rml 作为 openerp7 的报告语言。在那里我需要在文本之后放置一个分页符。

我的代码如下

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

请澄清一下。感谢您的宝贵时间。

【问题讨论】:

    标签: reporting openerp page-break rml page-break-inside


    【解决方案1】:

    这对我来说很好。

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

    少给它是一个错误。

    【讨论】: