0

Hi all,
Can anybody help me in resolving this issue. The details are mentioned below.

I am generating PDF using <cfdocument> tag of Cold Fusion.
I have a header and footer to be displayed on each page. I am rendering data in a table.
If rows in the table exceed a page , and continue on the next page , I want the table headers to be repeated on each of the page.

Example :
Currently this is happening:

Page Header

Some text .....

Column1 Header Column2 Header --- {Table headers}
A B
C D

Page Footer : Page No 1

Page Header

E F

Page Footer : Page No 2

What I want is this :

Page Header

Some text .....

Column1 Header Column2 Header --- {Table headers}
A B
C D

Page Footer : Page No 1

Page Header

Column1 Header Column2 Header --- {Table headers}
E F

Page Footer : Page No 2

Thanks in advance

3
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by AVM
0

Use this for an example

<cfloop query="some_query">
     <cfif (some_query.currentrow mod 56) is 0 or some_query.currentrow eq 1>
         table header row her
     </cfif>

Change the q

0

use <cfdoumentitem type="header"> which will automatically crate the header to the pdf document

Regards,
Anu V M

Edited by Ezzaral: Snipped email. Please do not sign your posts with 'fake signatures'; Use the signature facility from your control panel.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.