# Integrating C# component

**URL:** <https://www.ruby-forum.com/t/integrating-c-component/134143>\
**Category:** Rails\
**Created:** [April 8, 2008, 8:39am UTC](https://www.ruby-forum.com/t/integrating-c-component/134143 "2008-04-08T08:39:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayyanar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Post date:** [April 8, 2008, 8:39am UTC](https://www.ruby-forum.com/t/integrating-c-component/134143/1 "2008-04-08T08:39:34Z")

</div>

Is there a way to call c# component in Rails application?

The requirement here is I need to call the crystal reports from rails  
application. It seams it is easy to call the crystal report viewer  
from .NET. If Iam right we can create the dll in C# to invoke  
the crystal report, and invoke the dll from the rails application.  
Iam not sure. Is there any way to call the c# dll file from the rails  
application?

Thanks.

---

<div class="post-metadata">

**Author:** ![ayyanar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Post date:** [April 8, 2008, 8:51am UTC](https://www.ruby-forum.com/t/integrating-c-component/134143/2 "2008-04-08T08:51:46Z")

</div>

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  
it.

from this URL:

> **[DEVShed](https://devshed.com)**
>
> Founded in 1997, DEVShed is the perfect place for web developers to learn, share their work, and build upon the ideas of others.

I don’t know, but you may be able to use ‘iron ruby’ to do this, also.

Julian.

Learn Ruby on Rails! Check out the FREE VIDS (for a limited time)  
VIDEO #3 out NOW!  
[http://sensei.zenunit.com/](http://sensei.zenunit.com/)

---

<div class="post-metadata">

**Author:** ![ayyanar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/82dd89/32.png) [@ayyanar](https://www.ruby-forum.com/u/ayyanar)\
**Post date:** [April 8, 2008, 9:54am UTC](https://www.ruby-forum.com/t/integrating-c-component/134143/3 "2008-04-08T09:54:51Z")

</div>

Thanks Julian. The requirement here is how to call/invoke the crystal  
report  
from the rails application?
