RE: cfreport question
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: > >closable="true" > draggable="true" > name="Test" > modal="false" > initshow="true" > height="350" > width="325" > title="Test" > x="600" > y="150"> > filename="test.pdf" > overwrite="yes" > template="reports/newcoldfusionreport.cfr"> > > > > > 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
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: > >closable="true" > draggable="true" > name="Test" > modal="false" > initshow="true" > height="350" > width="325" > title="Test" > x="600" > y="150"> > filename="test.pdf" > overwrite="yes" > template="reports/newcoldfusionreport.cfr"> > > > > > 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 > > > > ~| Check out the new features and enhancements in the latest product release - download the "What's New PDF" now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291942 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: cfreport question
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: 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 ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291941 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
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: 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 ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291846 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfreport question
As long as you are setting the content type you should be fine. On 10/23/07, Luke Fromhold <[EMAIL PROTECTED]> wrote: > Ok, so I'm now trying to get my reports opening within a cfwindow. I've got > the reporting.cfm page as the value of the source attribute (of cfwindow), > and am binding some form values from a cfform on the page containing the > cfwindow tag to the url in the source attribute, to be used when > reporting.cfm calls the report. I buggered up the bind first off but > figured it out using cfdebug in my url, now I'm pretty sure they're working > well and aren't the prob.. but now when I click the button that calls the > window, it displays a window with absolute gobbledegook as its contents. It > does this, regardless of the format (flash or pdf) I choose for the report. > Before I tear my hair out trying to figure out where I'm going wrong (well, > before I pull any more out) does anyone know if I can actually use cfreport > inside a cfwindow? Could that be causing my problem? I just haven't been > able to find a reference to it anywhere. > > Thanks again > Luke > > -Original Message- > From: Dale Fraser [mailto:[EMAIL PROTECTED] > Sent: Monday, 22 October 2007 2:32 PM > To: CF-Talk > Subject: RE: cfreport question > > Of course, > > Just open the report in a new window, when they are done, they close the > window and are back where they were. > > You could also open he report in a frame, div, cfwindow. What ever you like. > This should work equally well with either flash player or Pdf versions. > > Although here we use PDF. > > Regards > Dale Fraser > > http://learncf.com > > > -Original Message- > From: Luke Fromhold [mailto:[EMAIL PROTECTED] > Sent: Monday, 22 October 2007 2:06 PM > To: CF-Talk > Subject: cfreport question > > Hi All > > Just a small cfreport query that any advice you have to offer would be much > appreciated.. I've got an app that has a reporting component and while I've > made good use of cf report builder and have some very funky reports I'd > really like to find a way for users to view them without being pushed out of > their flow - ie. At the moment pages with cfreport display the reports in > the whole browser window, and to return they need to the previous screen > they need to use the back button. Is there any way to display cfreports > embedded inside the page like a cfdocument can be, so the report is viewed > in the context of the rest of the interface? My googling and livedoc'ing > have suggested this isn't the case, but I'm hoping I couldn't find the right > search term. Or, being a mighty javascript novice, can anyone hook me up > with some js that could open a report in a new window? Is that the only > other alternative? > > Cheers > Luke > > > > > > > ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and Dreamweaver updates. http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291806 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: cfreport question
Ok, so I'm now trying to get my reports opening within a cfwindow. I've got the reporting.cfm page as the value of the source attribute (of cfwindow), and am binding some form values from a cfform on the page containing the cfwindow tag to the url in the source attribute, to be used when reporting.cfm calls the report. I buggered up the bind first off but figured it out using cfdebug in my url, now I'm pretty sure they're working well and aren't the prob.. but now when I click the button that calls the window, it displays a window with absolute gobbledegook as its contents. It does this, regardless of the format (flash or pdf) I choose for the report. Before I tear my hair out trying to figure out where I'm going wrong (well, before I pull any more out) does anyone know if I can actually use cfreport inside a cfwindow? Could that be causing my problem? I just haven't been able to find a reference to it anywhere. Thanks again Luke -Original Message- From: Dale Fraser [mailto:[EMAIL PROTECTED] Sent: Monday, 22 October 2007 2:32 PM To: CF-Talk Subject: RE: cfreport question Of course, Just open the report in a new window, when they are done, they close the window and are back where they were. You could also open he report in a frame, div, cfwindow. What ever you like. This should work equally well with either flash player or Pdf versions. Although here we use PDF. Regards Dale Fraser http://learncf.com -Original Message- From: Luke Fromhold [mailto:[EMAIL PROTECTED] Sent: Monday, 22 October 2007 2:06 PM To: CF-Talk Subject: cfreport question Hi All Just a small cfreport query that any advice you have to offer would be much appreciated.. I've got an app that has a reporting component and while I've made good use of cf report builder and have some very funky reports I'd really like to find a way for users to view them without being pushed out of their flow - ie. At the moment pages with cfreport display the reports in the whole browser window, and to return they need to the previous screen they need to use the back button. Is there any way to display cfreports embedded inside the page like a cfdocument can be, so the report is viewed in the context of the rest of the interface? My googling and livedoc'ing have suggested this isn't the case, but I'm hoping I couldn't find the right search term. Or, being a mighty javascript novice, can anyone hook me up with some js that could open a report in a new window? Is that the only other alternative? Cheers Luke ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291805 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: cfreport question
Great thanks for that Dale. -Original Message- From: Dale Fraser [mailto:[EMAIL PROTECTED] Sent: Monday, 22 October 2007 2:32 PM To: CF-Talk Subject: RE: cfreport question Of course, Just open the report in a new window, when they are done, they close the window and are back where they were. You could also open he report in a frame, div, cfwindow. What ever you like. This should work equally well with either flash player or Pdf versions. Although here we use PDF. Regards Dale Fraser http://learncf.com -Original Message- From: Luke Fromhold [mailto:[EMAIL PROTECTED] Sent: Monday, 22 October 2007 2:06 PM To: CF-Talk Subject: cfreport question Hi All Just a small cfreport query that any advice you have to offer would be much appreciated.. I've got an app that has a reporting component and while I've made good use of cf report builder and have some very funky reports I'd really like to find a way for users to view them without being pushed out of their flow - ie. At the moment pages with cfreport display the reports in the whole browser window, and to return they need to the previous screen they need to use the back button. Is there any way to display cfreports embedded inside the page like a cfdocument can be, so the report is viewed in the context of the rest of the interface? My googling and livedoc'ing have suggested this isn't the case, but I'm hoping I couldn't find the right search term. Or, being a mighty javascript novice, can anyone hook me up with some js that could open a report in a new window? Is that the only other alternative? Cheers Luke ~| 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:291727 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: cfreport question
Of course, Just open the report in a new window, when they are done, they close the window and are back where they were. You could also open he report in a frame, div, cfwindow. What ever you like. This should work equally well with either flash player or Pdf versions. Although here we use PDF. Regards Dale Fraser http://learncf.com -Original Message- From: Luke Fromhold [mailto:[EMAIL PROTECTED] Sent: Monday, 22 October 2007 2:06 PM To: CF-Talk Subject: cfreport question Hi All Just a small cfreport query that any advice you have to offer would be much appreciated.. I've got an app that has a reporting component and while I've made good use of cf report builder and have some very funky reports I'd really like to find a way for users to view them without being pushed out of their flow - ie. At the moment pages with cfreport display the reports in the whole browser window, and to return they need to the previous screen they need to use the back button. Is there any way to display cfreports embedded inside the page like a cfdocument can be, so the report is viewed in the context of the rest of the interface? My googling and livedoc'ing have suggested this isn't the case, but I'm hoping I couldn't find the right search term. Or, being a mighty javascript novice, can anyone hook me up with some js that could open a report in a new window? Is that the only other alternative? Cheers Luke ~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291725 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4