Forum: Ruby on Rails Crystal report with ruby on rails

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
8020d773a2dd54c2e234976d1b67f18b?d=identicon&s=25 dave (Guest)
on 2007-06-08 15:43
We have a bunch of crystal reports and we would like to use those on our
ruby on rails app. I was wondering if it was possible? Is there a plugin
of some sort or crystal report viewer for ruby?

I would appreciate any feedback.

F1ca95ee15ca64927c99759a004e0540?d=identicon&s=25 Ayyanar Aswathaman (ayyanar)
on 2008-04-02 10:59
I also need to work on the similar requirement. Any solution?
4dd75353dff93de29b53a1ac890a1771?d=identicon&s=25 Karthi kn (karthikeyan7585)
on 2008-04-08 09:22
I am also exploring on the same requirement.

Java supports generating reports with crystal reports.

For ROR applications, I hope JRUBY will give a solution for this(for
accessing the jave libraries). But I am yet to try it out.

Please check JRuby and let us know whether it can be useful.
D21058138cd06ffa74c9a386c358feab?d=identicon&s=25 Ratnavel P S (ratnavel)
on 2008-05-19 08:52
> Please check JRuby and let us know whether it can be useful.

hi even i have the same requirement..

Already my application is developed in Rails its almost completed now.
If i bring Jruby for this part now how to integrate this jruby part with
ror part?

2b1df44ef63bbf410976ef082d0d5d8b?d=identicon&s=25 Yacobus Reinhart (malioboro)
on 2008-05-19 09:02
Crystal reports can be configured to read XML input and format it
accordingly. Hence, you can use a rails handler to output your report
data in XML format and that should allow crystal reports to read from

example of your XML_REPORT.RHTML :

    <% for item in @data %>
        <id><%= %></id>
        <name><%= h( %></name>
        <desc><%= h(item.desc) %></desc>
    <% end %>

40db9e75b3f5899258e3bdc0c9210154?d=identicon&s=25 Conrad Taylor (Guest)
on 2008-05-19 09:41
(Received via mailing list)
Hi, you can also do the following in the controller action to return
the XML of the data result set:

@data = DataModel.find(:all)

Good luck,


Sent from my iPhone

On May 19, 2008, at 12:02 AM, Rails Terrorist
36f02ca8773a0bdc3f2d90a932c1b8b3?d=identicon&s=25 (Guest)
on 2008-05-20 17:02
(Received via mailing list)
I'm starting a new family of Inventory related web applications and am
sitting at the bottom of a high mountain hoping to hear a rumbling
from the 'Report Gods' and hope this might be it? I've studied the
Ruport strategy and fear it's a DEAD END as it clearly hasn't caught
on and I expect it'll someday lose the attention of its progenators.
Anyway, is the Crystal Reports strategy something like this:
The server creates the output in an XML format and downloads it to the
client machine.
The client user 'fires up' his Crystal Reports' desktop application
and loads a report format and then directs this formatted report to
the local XML data source?
I expect you laugh at my questions but as you can see, I'm at the "is
it an animal, mineral or vegetable" stage of this journey.
Thank you,

On May 19, 1:02 am, Rails Terrorist <>
4dd75353dff93de29b53a1ac890a1771?d=identicon&s=25 Karthi kn (karthikeyan7585)
on 2008-06-10 14:46

I have implemented the Crystal Reports and ROR integration for my
application. Please visit my blog for the
steps and see whether that info is helpful.
This topic is locked and can not be replied to.