• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 256
  • Last Modified:

cfdocument output problem

OK i have code that reads rows from a database from a field, i need this to output it in a pdf document, however when i do this it only outputs the second resord from the database, and not the first, third etc. if i take the cfdocument tag away and look at the infomation from the database on the page it displays no problem, just when i try output it in cfdocument it only outputs the second row from the database, here is my relevant code:

<CFQUERY NAME="getBooks" datasource="mybook">
SELECT userentry
FROM editbook
WHERE editbook = #url.id4#
</CFQUERY>

<cfoutput><cfdocument format="pdf" orientation="portrait"><cfdocumentitem type="header">#entries#</cfdocumentitem></cfdocument></cfoutput>


Can anyone see where i am going wrong??

Thanks

Ian
0
Ianaldo
Asked:
Ianaldo
1 Solution
 
PluckaCommented:
Ianaldo,

Try this.

<cfdocument format="pdf" orientation="portrait">
    <cfdocumentitem type="header"><cfoutput>#entries#</cfoutput></cfdocumentitem>
</cfdocument>


Regards
Plucka
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now