This question has been flagged
4030 Views

I am printing a report with a table with a lot of lines. For this reason, the table is splitted if it does not fit in one page.

The problem is that in every page, the table is totally sticked to the external header, which does not look very good.

I would like to know how I can set a margin-top for the content of the report in every page (to separate the content from the external header).

I tried to set frames, but they are being ignored. Any idea of how to do this?

I leave my code here, to check what I am doing wrong:

<?xml version="1.0"?>
<document filename="Links.pdf">
  <template title="Links" showBoundary="1" allowSplitting="20">
    <pageTemplate id="first">
      <frame id="first" x1="1cm" y1="1cm" height="4cm" width="18cm"/>
      <frame id="second" x1="1.5cm" y1="1.0cm" width="18cm" height="7.0cm"/> 
    </pageTemplate>
  </template>
  <story>
    <para>
      <font color="white"> </font>
    </para>
    <nextFrame/>
    <blockTable colWidths="480.0" repeatRows="1">
      <tr>
        <td>
          <para style="terp_tblheader_General_Centre">Category</para>
        </td>
      </tr>
      <tr>
        <para style="terp_default_8">[[ repeatIn(objects,'o') ]]</para>
        <para style="terp_default_8">[[ setLang(o.lang) ]]</para>
        <td>
          <para>[[ o.link_category_id.name or '' ]]</para>
          <para>
            <font color="white"> </font>
          </para>
        </td>
      </tr>
    </blockTable>
  </story>
</document>

Avatar
Discard