Yeah that's the way I was attempting originally. I also gave saving the
report to a variable a go (using the 'name' attrb of cfreport) and then
calling that variable via cfcontent too. Further, I've tried using cfreport
to save the report to a pdf on the hdd, then using filename and cfcontent to
display it.  All result in the same.  (and same tests with flashpaper too.)
When I put the url into the browser directly, they display great. Putting
that url into 'source' attrb of cfwindow shows the junk.  Using Firebug and
watching the call when cfwindow opens, I believe I am setting the content
type correctly.

-----Original Message-----
From: Andrew Scott [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 24 October 2007 6:30 PM
To: CF-Talk
Subject: Re: cfreport question

I suppose you didn't try to load a src file with the extension .cfm
and use that template to set the content type to pdf with cfcontent
and load the pdf that way?

I have seen it happen from time to time with the report displaying
giberish and that has been my solution with cached content.


On 10/24/07, Luke Fromhold <[EMAIL PROTECTED]> wrote:
> Thanks for the suggestion Rob. Getting cfreport to save the report to a
> file, then calling it in the cfwindow is still producing the gibberish.
> Running the cfreport directly in the browser works great and so does
calling
> the saved pdf though.  So I thought remove the cfreport component all
> together and just try opening some other pdf in the cfwindow.. same
problem.
>
>
> I'm thinking this is heading towards the conclusion that the cfwindow
can't
> open pdf or flash types?  But can anyone give this a try and confirm/deny
> that this is the case? It really would be the perfect solution for what
I'm
> after.
>
> -----Original Message-----
> From: Rob Parkhill [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 24 October 2007 3:07 AM
> To: CF-Talk
> Subject: Re: cfreport question
>
> Luke,
>
> do you have the filename attribute set for your cfreport tag? If this
isn't
> set it basically outputs the code for a PDF file into HTML, making well
> gobbledegook...
>
> Try setting a filename and then your overwrite attributes for the cfreport
> tag.
>
> I have the following:
>
> <cfwindow
>       closable="true"
>       draggable="true"
>       name="Test"
>       modal="false"
>       initshow="true"
>       height="350"
>       width="325"
>       title="Test"
>       x="600"
>       y="150">
>            <cfreport format="pdf"
>                      filename="test.pdf"
>                      overwrite="yes"
>                      template="reports/newcoldfusionreport.cfr">
>                 <cfreportparam name="name value="1">
>            </cfreport>
> </cfwindow>
>
> And it generated a PDF that I could find on my local machine and if I
wanted
> to code in reference to it, I could.
>
> HTH,
>
> Rob
>
>
>
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291943
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to