使用cfdocument时,仅将页脚添加到最后一页

我正在使用
cfdocument
创建多页文档(使用动态文本创建,因此可以包含任意数量的页面)。 我可以使用
<cfdocumentitem type="footer">
为每个页面添加页脚,但有什么办法我只能在文档的最后一页添加页脚? 谢谢。     
已邀请:
只需添加evalAtPrint属性即可。然后,您可以使用页码变量来有条件地设置页脚。
<cfdocumentitem type="footer" evalAtPrint="true">
    <cfif cfdocument.currentPageNumber eq cfdocument.totalPageCount>
        This is the last page
    </cfif>
</cfdocumentitem>
    
如您所知,即使evalAtPrint设置为true,也无法评估cfdocument.currentpagenumber以显示特定页面的不同页脚。这是我的解决方案。 http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7758.html     

要回复问题请先登录注册