Kevin Fricke wrote:
> Anyone know of a way to print the column headings (th) in a
> table on each page of a multiple page report?
Seems like what you'd do is use the CFTABLE tag with CFCOL. Here's the
example from the CFML reference:
<cftable query = "GetEmployees"
startRow = "1" colSpacing = "3" HTMLTable>
<!--- each cfcol tag sets width of a column in table, and specifies header
information and text/CFML with which to fill cell --->
<cfcol header = "<b>ID</b>"
align = "Left"
width = 2
text = "#Emp_ID#">
<cfcol header = "<b>Name/Email</b>"
align = "Left"
width = 15
text = "<a href = 'mailto:#Email#'>#FirstName# #LastName#</A>">
<cfcol header = "<b>Phone Number</b>"
align = "Center"
width = 15
text = "#Phone#">
</cftable>
Determine how many rows are going to be on the page and call CFTABLE on each
page, setting the startRow and endRow attributes to align with page breaks.
You can set them as dynamically as necessary.
This should work with 6.1 or CF7. There may well be an easier way to do
this, which i would be happy to learn about.
Hope this helps.
---
Skipper Pickle
972.978.5807
_______________________________________________
Reply to DFWCFUG:
[email protected]
Subscribe/Unsubscribe:
http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives:
http://www.mail-archive.com/list%40list.dfwcfug.org/
http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors:
www.instantspot.com/
www.teksystems.com/