if you're running windows Server, you could (Note: not necessarily will be able to) use the COM object to create a crystal report.
If you're using linux, then you'd have to use their API to create one.
Seeing as google has a wealth of knowledge, you should start your search there for help, then come here with specific questions.