Skip to main content
Inspiring
May 1, 2008
Answered

cfdocumentitem with variable ?

  • May 1, 2008
  • 1 reply
  • 547 views
Hello,

I'm not sure if this possible, but I'm trying to display a 6 characters long variable in the footer of a page.
I used the code bellow and I always get the last variable of my query even though I see the current variable in the body of the html.
Is there a way to make this works in the footer?
I'm using coldfusion 7

Thanks,
Chantal

<html>
<head>
<cfdocument format="PDF">
</head>

<body>
<cfloop index="LoopCount" from="1" to="#form.DesgCount#">
<cfset desgcode = #form[chkBoxName]#>
<table width="100%" cellpadding="0" cellspacing="0" align="center" border="0">
<tr>
<td align="right"><cfoutput>#desgcode#</cfoutput></td> <!--- correct desgcode--->
</tr>
</table>
<cfdocumentitem type="footer">
<table width="100%" cellpadding="0" cellspacing="0" align="center" border="0">
<tr>
<td align="right"><cfoutput>#desgcode#</cfoutput></td> <!--- incorrect desgcode--->
</tr>
</table>
</cfdocumentitem>

</cfloop>
</cfdocument>
</body>
</html>
    This topic has been closed for replies.
    Correct answer -__cfSearching__-
    cfdocumentsection
    Divides a PDF or FlashPaper document into sections. By using this tag in conjunction with a cfdocumentitem tag, each section can have unique headers, footers, and page numbers
    http://livedocs.adobe.com/coldfusion/7/htmldocs/00000238.htm#3766659

    1 reply

    -__cfSearching__-Correct answer
    Inspiring
    May 1, 2008
    cfdocumentsection
    Divides a PDF or FlashPaper document into sections. By using this tag in conjunction with a cfdocumentitem tag, each section can have unique headers, footers, and page numbers
    http://livedocs.adobe.com/coldfusion/7/htmldocs/00000238.htm#3766659
    click007Author
    Inspiring
    May 1, 2008
    Thank You,

    The cfdocumentsection did the trick.
    I lost my css after inserting it though.
    but when I placed cfdocumentsection before the css reference, it worked perfectly.

    Chantal