2013-08-05 3 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> 

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

Смежные вопросы