|
hessfirm -> RE: Page Break (7/13/2005 12:04:05)
|
Hey there rdouglass. I am trying to accomplish what you and Ruff described in this thread...however I am much more of a novice.... I have a page, (sample below), that shows a header, main section, then a footer....the main section could be 1-50 records long....so it will cut a record in half when going to the next page. If I predetermined that the page should have the header, no more than 6 records in the main section, then the footer, how can i accomplish? I see your explanation worked for Ruff, i am not quite as savvy though.[:(] I am pasting a sample of this page below. I would be eternally grateful if you could help me figure this one out!!!! [sm=bowdown.gif] <body> (this is the header) <table> <tbody> <!--#include file="fpweb:///_fpclass/fpdblib.inc"--> <% if 0 then %> <SCRIPT Language="JavaScript"> document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>"); </SCRIPT> <% end if %> <% fp_sQry="SELECT * FROM Master WHERE (ID = ::ID::)" fp_sDefault="ID=" fp_sNoRecords="<tr><td colspan=1 align=left width=""100%"">No records returned.</td></tr>" fp_sDataConn="ANHDDedServer" fp_iMaxRecords=256 fp_iCommandType=1 fp_iPageSize=0 fp_fTableFormat=True fp_fMenuFormat=False fp_sMenuChoice="" fp_sMenuValue="" fp_iDisplayCols=1 fp_fCustomQuery=False BOTID=0 fp_iRegion=BOTID %> <!--#include file="fpweb:///_fpclass/fpdbrgn1.inc"--> <tr> <td> <p align="center"><img border="0" src="../images/Advertisers/<%=FP_FieldLink(fp_rs,"BrochureLogo")%>"></td> </tr> <!--#include file="fpweb:///_fpclass/fpdbrgn2.inc"--> </tbody> </table> (this is the main section) <table> <tbody> <!--#include file="fpweb:///_fpclass/fpdblib.inc"--> <% if 0 then %> <SCRIPT Language="JavaScript"> document.write("<div style='background: yellow; color: black;'>The Database Results component on this page is unable to display database content. The page must have a filename ending in '.asp', and the web must be hosted on a server that supports Active Server Pages.</div>"); </SCRIPT> <% end if %> <% fp_sQry="SELECT * FROM Homesmaster WHERE (ID = ::ID::)" fp_sDefault="ID=" fp_sNoRecords="<tr><td colspan=1 align=left width=""100%"">No records returned.</td></tr>" fp_sDataConn="ANHDDedServer" fp_iMaxRecords=256 fp_iCommandType=1 fp_iPageSize=0 fp_fTableFormat=True fp_fMenuFormat=False fp_sMenuChoice="" fp_sMenuValue="" fp_iDisplayCols=1 fp_fCustomQuery=False BOTID=1 fp_iRegion=BOTID %> <!--#include file="fpweb:///_fpclass/fpdbrgn1.inc"--> <tr> <td> <div align="center"> <center> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" id="AutoNumber64" width="564"> <tr> <td align="right" valign="top" width="82" height="16"> <p style="margin-right: 5"><font color="#140F71"><span style="font-weight: 700; font-size: 9pt">MLS#</span><span style="font-size: 9pt; font-weight: 700">:</span></font></td> <td valign="top" width="134" height="16"> <span style="font-size: 9pt"><%=FP_FieldVal(fp_rs,"Ln")%></span></td> <td valign="top" align="right" width="64" height="16"> <p style="margin-right: 5; margin-top: 0; margin-bottom: 0"><font color="#140F71"><span style="font-weight: 700; font-size: 9pt">Stories:</span></font></td> <td valign="top" width="284" height="16"> <span style="font-size: 9pt"> <%=FP_FieldVal(fp_rs,"Sto")%></span></td> </tr> <tr> <td align="right" valign="top" width="82"> <p style="margin-right: 5; margin-top: 8"><font color="#140F71"><span style="font-weight: 700; font-size: 9pt">Remarks:</span></font></td> <td colspan="3" valign="top" width="482"> <p style="margin-top: 8; margin-bottom: 0"><span style="font-size: 9pt"><%=FP_FieldVal(fp_rs,"R3")%></span><p CLASS='page'></td> </tr> </table> </center> </div> </td> </tr> <!--#include file="fpweb:///_fpclass/fpdbrgn2.inc"--> </tbody> </table> (This is the footer) <div align="left"> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="600"> <tr> <td>this could be the footer</td> </tr> </table> </div> </body>
|
|
|
|