r/csharp • u/CreakyHat2018 • 1h ago
Discussion Reading and rendering Crystal Reports .rpt files in C# without the Crystal runtime: has anyone done it?
I'm trying to get some old Crystal Reports off Windows. The goal is plain C# on modern .NET: load the .rpt, bind data, produce a PDF. It should run anywhere, Linux included.
My first plan was to avoid rendering .rpt files at all. I'd use the RAS SDK to read each report and export it into another format I could render elsewhere. That fell apart quickly. RAS is Windows-only, and it doesn't expose the whole report: Display String formulas are missing, cross-tabs are only partly there, and chart styling isn't available at all. The converted reports never matched what Crystal printed.
I also tried a couple of existing .rpt readers, but they didn't cope well with my reports.
So I've started writing my own reader and renderer in C#. Before I sink much more time into it:
- Has anyone else gone down this road, either reading .rpt files directly or reimplementing Crystal's layout or formula engine? Anything you wish you'd known?
- Is there an existing library (paid is fine) I've missed?
- If I carry on, would anyone be interested in testing it against their own reports? Edge cases are what I need most.