If I knew the number of rows that were going to print I could do this with plain html and looping.
Is there not a dynamic way to achieve this? -------------------------------------------------------- Kevin Fricke Lone Star Media [EMAIL PROTECTED] Office: (512) 371-1822 Mobile: (512) 626-0528 Fax: (512) 597-0909 Toll Free: (877) 791-7083 http://www.lonestarmedia.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Skipper Pickle Sent: Wednesday, May 09, 2007 9:52 PM To: 'Dallas/Fort Worth ColdFusion User Group Mailing List' Subject: RE: [DFW CFUG] html table printing 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/ _______________________________________________ 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/
