Crystal Reports in ROR application

Hi,

I want to use Crystal Reports in my ROR application. The way I am planning is to create an XML file and send the file as the input for the Crystal Report application.

I believe there is no API in ROR to access the crystal reports. I am using Crystal Reports 11.

I am planning to access the crystal report via command prompt from ruby code.

Can anyone please help me how to achieve this???

Does anybody know how to run the Crystal Report in DOS Command Prompt by passing the xml file as parameter?

Thanks in advance.