How to access cfdocument.currentpagenumber outside the cfdocumentitem tag
Hi all
Can anybody help me with this.
I want to access cfdocument.currentpagenumber outside the cfdocumentitem tag. I tried the following ways :
1)
<cfdocument format="pdf" orientation="landscape" unit="cm" margintop="4.0" marginbottom="2.0" marginleft="2.2" marginright="2.2" <cfoutput>
<table>
</cfoutput> </cfdocument> |
Output :
Variable PAGE is undefined. |
At Line : <td> Page No : #Page#</td>
2)
<cfdocument format="pdf" orientation="landscape" unit="cm" margintop="4.0" marginbottom="2.0" marginleft="2.2" marginright="2.2" <cfoutput>
<table>
</cfoutput> </cfdocument> |
Output :
No Error on PDF , but value of Page is blank. I do not get the value of cfdocument.currentpagenumber in Page.
3)
<cfdocument format="pdf" orientation="landscape" unit="cm" margintop="4.0" marginbottom="2.0" marginleft="2.2" marginright="2.2" <cfoutput>
<cfdocumentsection>
<table>
</form> </cfoutput> </cfdocument> |
Output : ERROR :
Variable HDNPAGE is undefined.
at line : <td> Page No : #hdnPage#</td>
