Help populating a pdf with coldfusion Programming Web Development by dottomm …# </cfquery>[/CODE] Here is my cfpdfform code //pdf.cfm [CODE] <cfpdfform action="populate" source="pdf/testform…; value="#getuserdetails.LastName#"> </cfpdfsubform> </cfpdfform> [/CODE] The form I am trying to populate (pdftestform… Populating PDF from Form Programming Web Development by hinsel … process it and write the pdf values: [code=cfm] <cfpdfform source="form.pdf" destination="moosh.pdf"…; value="#form.Agent_Name___Code_Number#"> </cfpdfsubform> </cfpdfform> [/code] Here is an image of the pdf dump… Re: Help populating a pdf with coldfusion Programming Web Development by cfwebdeveloper Weird...I will try to replicate this once I get home from work. I havn't messed with cfpdfform before but would be nice to figure out this issue. Re: Help populating a pdf with coldfusion Programming Web Development by arrgh [quote]Yes, I've tried the cfdocument tag, and it is creating pdf forms for me, but I'd like to get data from a database to populate the pdf form based on the user id that is passed in the url. [/quote] Huh? ;) cfdocument doesn't create or populate forms. But you [I]can [/I]populate forms with cfpdfform. Re: Help populating a pdf with coldfusion Programming Web Development by arrgh [QUOTE=dottomm;1598628]Hi - Thanks for everyones help. I did resolve my problem. Using the example from adobe cfdeveloper pointed out. Complete Total user error. The Adobe documentation is correct.[/QUOTE] Oh, I believed cfpdfform would work. It was the talk about cfdocument and forms that had me scratching my head ;-) Glad it's resolved. Re: Help populating a pdf with coldfusion Programming Web Development by cfwebdeveloper Have you tried cfdocument? You can generate PDF files using that tag. Let me know. Re: Help populating a pdf with coldfusion Programming Web Development by dottomm Thank you cfwebedeveloper. Yes, I've tried the cfdocument tag, and it is creating pdf forms for me, but I'd like to get data from a database to populate the pdf form based on the user id that is passed in the url. Re: Help populating a pdf with coldfusion Programming Web Development by cfwebdeveloper Dumb question but are you sure the query is dumping out data? Try a cfdump on the query. Re: Help populating a pdf with coldfusion Programming Web Development by dottomm Not a dumb question. Thank you. I had to double check. Yes. It is dumping the query based on userID passed in URL. I can't figure out why it won 't appear in a pdf. It seems like I'm so close. thanks again! Re: Help populating a pdf with coldfusion Programming Web Development by cfwebdeveloper Are you sure you are getting results back from the database? Sounds like you are getting no results back from the database. Do a quick cfoutput of getuserdetails.recordcount and see if it 0 or 1. Re: Help populating a pdf with coldfusion Programming Web Development by dottomm I'm getting "1" Re: Help populating a pdf with coldfusion Programming Web Development by cfwebdeveloper What does your testform.pdf look like? This might help too, [url]http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=formsPDF_04.html[/url] Re: Help populating a pdf with coldfusion Programming Web Development by dottomm Thanks for your help! I really appreciate it! Re: Help populating a pdf with coldfusion Programming Web Development by dottomm Yes. I saw that example, and it's basically where I started. [QUOTE=cfwebdeveloper;1590759]What does your testform.pdf look like? This might help too, [url]http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=formsPDF_04.html[/url][/QUOTE] Re: Help populating a pdf with coldfusion Programming Web Development by cfwebdeveloper Totally did not get around to this, busy studying for a certification. Did you resolve your issue yet? Re: Help populating a pdf with coldfusion Programming Web Development by dottomm Hi - Thanks for everyones help. I did resolve my problem. Using the example from adobe cfdeveloper pointed out. Complete Total user error. The Adobe documentation is correct. Re: Help populating a pdf with coldfusion Programming Web Development by jsmall26 Wrap the whole page, query and all, in the cfdocument tag. It should be the first line and last lines of the whole page. Make sure your variables that are passed are scoped with the url/cookie/session. I create dynamic pdf's all the time and this problem the first time I tried it. Re: Populating PDF from Form Programming Web Development by arrgh [quote]form.Report_Purpose_Code[1][/quote] FORM fields aren't arrays. They're simple names. So make the <form> field names unique, and use the simple names to populate the form. ... value="#form.Report_Purpose_Code1#"> ... value="#form.Report_Purpose_Code2#">