Re: question about Splitting over pages - top and bottom rows

Robin Becker <[email protected]>
Newsgroups gmane.comp.python.reportlab.user
Message-ID <[email protected]>
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:[email protected]] 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.