May 24, Maybe try a different content type, this should work files. cfcontent. Jan 13, To output a Flashpaper format report, use a CFCONTENT type of . I know CFDocument only supports FlashPaper and PDF (as of CF8). TIA. Jun 11, Bug in ColdFusion’s cfcontent within CustomTag execution end. Removing the trailing slash worked for me too (CF8). Thank you!!.
|Published (Last):||28 February 2015|
|PDF File Size:||6.82 Mb|
|ePub File Size:||12.93 Mb|
|Price:||Free* [*Free Regsitration Required]|
The first 2x “– boundary ” lines I had coded as “– boundary –“. In fact you can readily use a non existent file without a full path and it will work just as well. Great to hear, Mike. Hope the resources offered may help.
That’s quite a curious leap. The content however is fine because when I save it with extension. So, I tried to create a simple-as-possible case where this happens. If it has blank or special characters, it will cause this behavior.
Perhaps it just dumps it out? Email Twitter Facebook LinkedIn. The following should precede the listing I posted earlier: Barry, I’m not clear about your question. But I’m guessing you must have had a reason to make it a variable.
I have used a basic example from Ben N’s blog, and the same thing happens with his code, but his cfcontent is just some static text. I have just finished getting this to work. OK, this is great! Mark Kruger Related Categories: Wil, that’s interesting to hear. I think you should try static text in your cfcontent tag and see if that works. XML will ignore any special characters inside. Thought it was working – but it’s NOT! Enter your email address to subscribe to this blog.
Just as with creating a variable with any tag, you could have instead provided a prefix scope like session, application, or server.
ColdFusion Muse: MIME Types, Coldfusion and You
This might help someone. What should the format attribute of the cfdocument tag be set to? Looking at the code above, can anyone see a reason why IE9 would not render the download dialog box for a Word document? This is excellent news, however I’m having a problem with Outlook receiving these emails.
So as for pre-processing, I’d say there’s cfcontejt much chance.
Bug in ColdFusion’s cfcontent within CustomTag execution end
I used some Ben Nadel fc8 code to check this, and his code used static text in the cfsavecontent, used a static filename, and still used toBinary and Tobase64 around the cfsavecontent name in the cfcontent tag, but still no download box This may not be news to some, but it was to me.
It will cfcontebt regarded more seriously coming from you as a need than from me just pointing out an observed difference that perhaps no one would care about.
I’ll do a new blog entry on dfcontent in a moment. Then you could manage that cached result any of the many ways that have long existed for caching other tag results in shared scope variables.
This is my first time posting to Stack Overflow, so be gentle.
January 13, This NAME attribute is simply an interesting alternative. Jon you’re a star! The point is it should work, but doesn’t. While this is nifty and works well, it is not cffontent great deal better than a switch statement – except it allows for fewer lines of code.
It was much simpler to code the app just to generate the PDF on the fly and email it as an attachment and leave storage up to the user.