[reportlab-users] question about Splitting over pages - top and bottom rows
Robin Becker
robin at reportlab.com
Wed Jun 14 05:32:18 EDT 2017
Hi Bing,
not sure exactly how you create your table, but the title rows in the sample
image you showed are created by specifying a number of repeat rows. The example
is from RML there it looks like
<blockTable repeatRows="1" style="repeater">
<tr><td>Date</td><td>Item</td><td>Debit</td><td>Credit</td></tr>
<tr><td>28-09-2004</td><td>Expensive lunch with
clients</td><td>100</td><td>-</td></tr>
<tr><td>28-09-2004</td><td>Expensive lunch with
clients</td><td>101</td><td>-</td></tr>
<tr><td>28-09-2004</td><td>Expensive lunch with
clients</td><td>102</td><td>-</td></tr>
........
</blockTable>
The repeat rows are defined by the attribute repeatRows="1".
If you use the base reportlab library then the Table class has a keyword
argument called repeatRows.
On 14/06/2017 08:29, Ma, Bing wrote:
> Hi Robin,
> I am trying to write a code to create a long table.[cid:image002.png at 01D2E4E8.43C84670] But I can't get the table with titles on each page like you did.
> Please give me some help. Thanks.
>
>
> Regards,
>
> Bing Ma
>
--
Robin Becker
More information about the reportlab-users
mailing list