I'm trying to use cfdocument to create a PDF report based off a couple of different forms. The code works just fine and the document is being created correctly, but a nested table that is being included from one of the forms (tip.form.cfm) gets thrown out of order and displayed at the bottom of the page. The other form (rtp.form.cfm) contains the exact same nested table but displays correctly. I've been trying to figure this out for a week with no luck. Any suggestions on how to force the cfdocument to display correctly are appreciated. Thanks!
Here's the code from the cfdocument (code from the forms is too long to include here) <!--- query to retrive assoicated TIPs ---> <cfquery name="qdTIP"> SELECT tip_id AS tip FROM tip_master_update WHERE rtp_id = #rtp# </cfquery> <html xmlns="http://www.w3.org/1999/xhtml"> <cfset todayDate = Now()> <cfdocument format="pdf" pagetype="letter" fontembed="yes" encryption="128-bit" permissions="allowcopy,allowprinting,allowscreenreaders,AllowModifyContents" scale="90" marginbottom="1" marginleft="1" marginright="1" margintop="1"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Transportation Projects Report</title> <style type=âtext/cssâ media=âscreenâ>@import âtranproj.cssâ;</style> </head> <body> <cfinclude template = "rtp.form.cfm" > <div style="page-break-before:always"></div> <cfloop query="qdTIP"> <cfinclude template="tip.form.cfm"> <div style="page-break-before:always"></div> </cfloop> </body> </cfdocument> </html> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313733 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4