PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: Any way to repeat table headers?
   PostPosted: 11 Nov 2009, 12:23 
Since THEAD is not supported, is there any other way to repeat table headers on each page in pd4ml?


  Subject: Re: Any way to repeat table headers?
   PostPosted: 11 Nov 2009, 13:50 
For the time being it is only possible with pd4ml.enableTableBreaks() API call (or its JSP taglib mapping - a corresponding atribute of <pd4ml:transform>).

The mode forces PD4ML to repeat all table rows built with <th> only.


  Subject: Re: Any way to repeat table headers?
   PostPosted: 23 Nov 2009, 18:18 
We tried enableTableBreaks(true) in the API, but it had no effect on the <th>-Table-Headers. Our table-headers looks something like:
<th>
<tr style="background-color:blue;">
<td style="text-align:right;">SOME_COLUMN_HEADER_TEXT</td>
...
</tr>
</thead>
Is there something we have to change to make the table-headers repeated on each page?


  Subject: Re: Any way to repeat table headers?
   PostPosted: 23 Nov 2009, 18:28 
PD4ML does not support <thead> tag. Table header for PD4ML is the top row (or rows), consists of <th> only:

<table> 
<tr><th>Column caption 1</th><th>Column caption 1</th></tr>
<tr><th colspan=2>Still table header</th></tr>
...
<tr><td>Data 1</td><td>Data 2</td></tr>
...
</table>


  Subject: Re: Any way to repeat table headers?
   PostPosted: 25 Nov 2009, 16:48 
Thanks, thats now working. But with one problem:
When the table-rows consists of <td>'s that show multiline text (with <br>)
and the page-break is right inside one of this elements, it dosesnt work correctly.
The new header and the continuation of the text start at the same position and
overwrite each other.
Is there any known way in pd4ml to prevent this?
Some kind of "page-protecton" for a <tr> for example?


  Subject: Re: Any way to repeat table headers?
   PostPosted: 11 Dec 2009, 18:36 
enableTableBreaks(true) implicitly sets "page-break-inside: avoid" for TR and TABLE elements. If a particular row is broken (by an implicit page break) - that means the table row height exceeds the page height. In the case it simply continues the row content on the next page. In such case PD4ML does not put the table header on the top of the second row part.

But, as you wrote, it writes the header (and overwrites the content).

Could you please send to PD4ML support the HTML sources which could help us to reproduce the issue.


  Subject: Re: Any way to repeat table headers?
   PostPosted: 14 Dec 2009, 15:50 
Since our system directly sends the report-information, generated using a html-template-file, from a database to pd4ml using an URL, the html-code itself isn't saved. If the problem occurs again, I will try to extract the html-code and send it to you.



[Reply]     [ 7 posts ] 

cron
Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share