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

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

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

Regards,
Anu V M

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.