我想知道如何配置分页数列数而不是行数。例如,我想在每页5列。 我怎么能意识到这一点?如何在RML中配置分页符的列数?
<blockTable colwidths="150,100,100,100,100,100" style="Table1">
<tr>
<td>
<para style="P8">NOM EMPLOYÉ</para>
</td>
<td>
<para style="P7">[[ repeatIn(get_employee_lines(example.company_id,example.date_start,example.date_end), 'o', 'td') ]]</para>
<para style="P7">[[ o['name'] ]]</para>
</td>
</tr>
<tr>
<td>
<para style="P8">Matricule</para>
</td>
<td>
<para style="P7">[[ repeatIn(get_employee_lines(example.company_id,example.date_start,example.date_end), 'p', 'td') ]]</para>
<para style="P7">[[ p['matricule'] ]]</para>
</td>
</tr>
<tr>
<td>
<para style="P8">HEURES SUPPLEÉMENTAIRES 100%</para>
</td>
<td>
<para style="P7">[[ repeatIn(get_employee_lines(example.company_id,example.date_start,example.date_end), 'a', 'td') ]]</para>
<para style="P7">[[ a['hours_overtime_100'] ]]</para>
</td>
</tr>
<tr>
<td>
<para style="P8">ABSENCE</para>
</td>
<td>
<para style="P7">[[ repeatIn(get_employee_lines(example.company_id,example.date_start,example.date_end), 'b', 'td') ]]</para>
<para style="P7">[[ b['seetek_absence_day'] ]]</para>
</td>
</tr>
<tr>
<td>
<para style="P8">TOTAL BRUT</para>
</td>
<td>
<para style="P7">[[ repeatIn(get_employee_lines(example.company_id,example.date_start,example.date_end), 'c', 'td') ]]</para>
<para style="P7">[[ c['total_brut'] ]]</para>
</td>
</tr>
</blockTable>
不知道我理解你的问题。通常情况下,你定义了要放入页面的内容。所以如果你想要一个带有5列的表格,只需要一个包含5列的表格。 您的意思是说您的列数量未知,并且您想用它们填充连续的页面?你能否给我们一个更精确的例子? –
我有一个循环,所以列的数量将取决于该循环的结果。我无法定义为什么我想在每个页面中定义的列数,我会找到5个或X列,使用这种方法,我不会松散通知,因为它们将在页面之外 –
因此,您认为@ Andrei Boyanov –