cfdocument output problem
Posted on 2006-03-28
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">
WHERE editbook = #url.id4#
<cfoutput><cfdocument format="pdf" orientation="portrait"><cfdocumentitem type="header">#entries#</cfdocumentitem></cfdocument></cfoutput>
Can anyone see where i am going wrong??