Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 01/31/2015
Components: Document Management
Versions: 11.0
Failure Type: Enhancement Request
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Normal / Unknown
Locale/System: English / Win All
Vote Count: 1
Currently <cfhtmltopdfitem> cannot use its page variables in expressions like <cfdocumentitem> can. For example, this <cfdocumentitem> code works:
<cfdocumentitem type="header" evalatprint="true">
<cfif CFDOCUMENT.CurrentPageNumber mod 2 is 0>something<cfelse>something else</cfif>
</cfdocumentitem>
However, this <cfhtmltopdfitem> code throws exception "An error has occurred while retrieving content for setting Header/Footer.":
<cfhtmltopdfitem type="header" evalatprint="true">
<cfif _CURRENTPAGENUMBER mod 2 is 0>something<cfelse>something else</cfif>
</cfhtmltopdfitem>
Removing the evalatprint="true" attribute throws the same exception.
This is just one of the reasons most existing <cfdocumentitem type="header|footer"> tags cannot be converted to <cfhtmltopdfitem type="header|footer">, and why <cfhtmltopdfitem type="header|footer"> cannot even be used for new code.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3931678
External Customer Info:
External Company:
External Customer Name: Aaron
External Customer Email:
Attachments:
Comments: