Link to home
Start Free TrialLog in
Avatar of Ianaldo
Ianaldo

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of Plucka
Plucka
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial