RML中的条件页面中断

时间:2013-08-05 10:29:47

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

我使用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>

请澄清我。谢谢你的时间。

1 个答案:

答案 0 :(得分: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>

将它减少是错误的。