تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
9946 أدوات العرض

Hi,

I am using rml as reporting language for openerp7. In there i would require to put a page break after a text.

My Code is below

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

Kindly Clarify me. Thanks for your time.

الصورة الرمزية
إهمال
أفضل إجابة

To use it, you give it a height in any units that RML can handle. It then compares this height with the remaining available space on a page. If the space is sufficient, then the next elements are placed on the current page, but if there is less space than the height you have given it anything following the <condpagebreak/> tag is continued on the next page.

الصورة الرمزية
إهمال
الكاتب

Thanks Parvathy for your answer. Actually it was a mistake to give it as 8cm. I just tested with 80cm and it works fine.

الكاتب أفضل إجابة

Hi,

This works fine for me.

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

It was a mistake to give it as less.

الصورة الرمزية
إهمال

If its working for you just vote for it, so that it will be useful for others

المنشورات ذات الصلة الردود أدوات العرض النشاط
3
يوليو 24
8290
0
أبريل 17
3054
1
أبريل 17
4428
2
نوفمبر 15
4803
0
مارس 15
4558