Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 1016

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Working with Documents, Charts, and Reports
<cfoutput>
<tr>
<td><font size="-1">
#empSalary.lastname#, #empSalary.firstname#</font>
</td>
<td align="right"><font size="-1">
#DollarFormat(empSalary.salary)#</font>
</td>
</tr>
<cfset deptTotal = deptTotal + empSalary.salary>
</cfoutput>
<tr>
<td align="right"><font size="-1">Total</font></td>
<td align="right"><font size="-1">#DollarFormat(deptTotal)#</font></td>
</tr>
<cfset deptTotal = 0>
</table>
</cfdocumentsection>
</cfoutput>
</cfdocument>
Using the cfdocument scope
When you use the
cfdocument
variables:
Displays the current page number.
currentpagenumber
Displays the total page count.
totalpagecount
currentsectionpagenumber
Displays the total number of sections.
totalsectionpagecount
Note: You can use the
cfdocument
You typically use these variables in a header or footer to display the current page number and total number or pages,
as the following example shows:
<cfdocumentitem type= "footer> #cfdocument.currentpagenumber# of
#cfdocument.totalpagecount#</cfdocumentitem>
Creating bookmarks in PDF files
You can use the
cfdocumentbookmark
following example shows:
tag, ColdFusion creates a scope named
Displays the current section number.
scope variables in expressions within the
attribute to create bookmarks for each section within a PDF document, as the
Last updated 1/20/2012
. This scope contains the following
cfdocument
tag only.
cfdocumentitem
1011

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents