Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

cfdocumentitem with variable ?

Explorer ,
May 01, 2008 May 01, 2008
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>
499
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Valorous Hero , May 01, 2008 May 01, 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
Translate
Valorous Hero ,
May 01, 2008 May 01, 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 01, 2008 May 01, 2008
LATEST
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources