Whatever message this page gives is out now! Go check it out!
<cfdocument ...>
<cfdocumentitem
type = "pagebreak|header|footer"
evalAtPrint = "true"
header/footer text </cfdocumentitem>
</cfdocument>Attribute | Req/Opt | Default | Description |
type | Required | Specifies the action:
| |
evalAtPrint | Optional | false | A Boolean value that determines if the contents of the cfdocumentitem tag body has to be evaluated at the time of printing the document.
|
...
<cfdocumentitem type= "footer>
#cfdocument.currentpagenumber# of #cfdocument.totalpagecount#
</cfdocumentitem><cfquery datasource="cfdocexamples" name="parksQuery">
SELECT parkname, suptmgr from parks
</cfquery>
<cfdocument format="PDF">
<cfdocumentitem type="header">National Parks Report</cfdocumentitem>
<!--- Use a footer with current page of totalpages format. --->
<cfdocumentitem type="footer">
<cfoutput>Page #cfdocument.currentpagenumber# of #cfdocument.totalpagecount#</cfoutput>
</cfdocumentitem>
<h1>Park list</h1>
<table width="95%" border="2" cellspacing="2" cellpadding="2" >
<tr>
<th>Park</th>
<th>Manager</th>
</tr>
<cfoutput query="parksQuery">
<tr>
<td><font size="-1">#parkname#</font></td>
<td><font size="-1">#suptmgr#</font></td>
</tr>
</cfoutput>
</table>
</cfdocument>