I am not sure I fully understand the question you are asking but it seems that you need to find a consistent way to break up this report. Insert a
<cfdocumentitem type = "pagebreak"/> You could do some line count math if it needed to be done differently. In your cfoutput increment a variable "linecount = linecount + 1" until you reach the page height then insert the pagebreak and reset linecount to 0, repeat hope that helps Travis Haley Haley Computer Solutions -----Original Message----- From: Bruce Sorge [mailto:[EMAIL PROTECTED] Sent: Monday, September 24, 2007 12:00 PM To: CF-Talk Subject: CFDocument Question I checked the docs and I don't think that this is possible, but I thought I would ask anyway. Here is my code: <!--- Create the PDF document ---> <cfdocument name="MasterSchedule" format="pdf"> <!--- Create the header for each page ---> <cfdocumentitem type="header"> <font size="3"><i><strong>Master Bus Route Report</strong></i></font> </cfdocumentitem> <!--- Output all of the schedules, grouping by the Route_ID ---> <cfoutput query="getAllRoutes" group="Route_ID"> <table align="center" cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <th colspan="4"> #School_Name# #Route_Name# </th> </tr> <cfoutput> <tr class="contacts_cell"> <td width="40%"> #StreetName# </td> <td width="20%"> (#Side#) </td> <td width="15%"> #Pick_Up# </td> <td width="15%"> #Drop_Off# </td> </tr> </cfoutput> </table> </cfoutput> </cfdocument> <!--- Set the folder to save the document ---> <cfset savedFolder = expandPath("../pdf/MasterSchedule")> <!--- Write the file to the named folder above ---> <cffile action="write" file="#savedFolder#/MasterSchedule.pdf" output="#MasterSchedule#" nameconflict="overwrite"> <!--- Output the PDF ---> <cfcontent type="application/pdf" reset="true" file="#savedFolder#/MasterSchedule.pdf"> What is happening is this. When the PDF outputs, the part with school_name and Route_Name is sometimes left hanging at the bottom of the page and then the corresponding schedule begins at the next page. What I want is that if this section is all that is left on the page, I want it to break at that point. I know that CFDOCUMENT is a bit limited but I am hoping that I can at least do this. Thanks, Bruce ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289338 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

