Skip to main content
Participant
July 5, 2006
Question

displaying images in a ColdFusion Report (cfr)

  • July 5, 2006
  • 1 reply
  • 1204 views
I am playing around with graphs and reports. The requirement is to be able to produce reports in PDF and/or RTF with graphs included. Overall cfdocument may be my solution but it does not have the rtf option.

One solution I was testing was using WebChart3D code to create the images and then passing the location of the images into a Cold Fusion Report for display. I did this by creating a simply query with one column holding the location of the three graphs I have. All the report does is display a single chart per page.*

This works great on my XP laptop but when I moved it to our linux box I get an error saying “No such file or directory”. I have checked both directory and file are there. And yes it lists the correct directory and file (case matched). So I am wondering if it is a permissions issue. Any ideas?

Thanks,
Joel

* Yes I know Report Builder allows you to create graphs. However, we have a requirement for the graphs themselves that so far I have not been able to meet using the Report Builder graphing tool even though it is quite good.
This topic has been closed for replies.

1 reply

joel_eAuthor
Participant
July 5, 2006
Ok, slight change but essentially still the same problem.

I was missing a "/" at the beginning of the path to the image. I corrected that and now I get...

Report data binding error Image not found :

... so I have essentially the same issue. I changed the report to do nothing other than display the image. The path is hard coded into the report.
Participating Frequently
July 14, 2006
Don't know if this answers your issue with report builder, but with cfdocument, apparently ColdFusion engine must be able to resolve embedded images and files fully. Maybe it's also the case with report builder? The fix involves simple host file change. See this post on CFTalk:

http://www.houseoffusion.com/cf_lists/messages.cfm/forumid:4/threadid:46071

Cheers,
Kris