Lof*_*ftx 5 coldfusion footer cfdocument
我正在创建一个使用多页文档cfdocument(使用动态文本创建,因此可以包含任意数量的页面).
我可以用来<cfdocumentitem type="footer">为每个页面添加一个页脚,但有什么办法我只能在文档的最后一页添加一个页脚?
谢谢.
Lei*_*igh 12
只需添加evalAtPrint属性即可.然后,您可以使用页码变量来有条件地设置页脚.
<cfdocumentitem type="footer" evalAtPrint="true">
<cfif cfdocument.currentPageNumber eq cfdocument.totalPageCount>
This is the last page
</cfif>
</cfdocumentitem>
Run Code Online (Sandbox Code Playgroud)