Условный разрыв страницы в RML

Я использую 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>

Пожалуйста, разъясните мне. Спасибо за ваше время.


person Vivek    schedule 05.08.2013    source источник


Ответы (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>

Было ошибкой давать меньше.

person Vivek    schedule 05.08.2013