Sigh... works for me too, not sure why I ended up down the paths I did. One thing I can't seem to get working is a a page break, which as I understand it (new to pdf creation, in cf too), shoould be doable like this:
<cfdocumentitem type="pagebreak"> That throws an error in open bd. The cfdocumentitem tag isn't listed on either the supported or unsupported tags pages. Is it supported, and I'm doing something wrong in using it? If it's not supported, is there some other way to force a page break at a specific location? Thanks gain, as always, e On Aug 28, 12:51 am, Matthew Woodward <[email protected]> wrote: > enigment wrote: > I think you may be overcomplicating this--if you use cfheader and you're > outputting right on that page, you don't need cfcontent since you're > generating the PDF on the fly. cfcontent comes in handy for forcing a > download of files that have been written to disk, however. > > This should do the trick--let's assume select * from foo gets me an id > and email column: > <cfquery name="whatever"> > select * from foo > </cfquery> > > <cfheader name="Content-Disposition" value="attachment; filename=""sql > results.pdf""" /> > > <cfdocument format="pdf"> > <cfoutput query="whatever"> > #whatever.id# #whatever.email#<br /> > </cfoutput> > </cfdocument> > > Try running that and see if that does the trick, or let me know if I'm > misunderstanding what you're trying to accomplish. I did a quick test > and that worked for me. --~--~---------~--~----~------------~-------~--~----~ Open BlueDragon Public Mailing List http://groups.google.com/group/openbd?hl=en official site @ http://www.openbluedragon.org/ !! save a network - trim replies before posting !! -~----------~----~----~----~------~----~------~--~---
