views:

81

answers:

2

Background: I currently have a Web Forms, ASP.NET 3.5/C# application which I'm interested in converting to MVC 2. It's a relatively tiny app so the exercise shouldn't take too long. The two primary functions the appliction does is allow users to

1) view and enter their data - metrics

2) view output reports of this data aggreggated at a higher level.

This second point is of concern to me as my first impression of MVC is that most of the reporting tools do not work with it. I'm currently using ReportViewer for 2) but I read here and on other sites that configuring it to work with MVC is a pain.

Are there any other types of Reporting capabilities that I could use with MVC 2? Are there some that work "out of the box"?

Or in your experience of using MVC 2, would it be easier to put together your own report? My requirement is to make a report that is similar to ReportViewer's Matrix style, with a few merged cells and a drill down by two levels. Don't know if that's way too complicated to do with MVC from scratch or not.

EDIT: Bonus if you know of any other Reporting add-ons that work with MVC besdies ReportViewer.

+6  A: 

I have used the RDLC local reports to do this but I don't use the report viewer (even in webforms). I always stream the report straight to PDF. This works great in MVC as well since in this case I am avoiding the report viewer control.

This tutorial/post shows how to stream in MVC.

klabranche
If you must use a pre-processed report then do it this way - dump it direct to the response.
cottsak
+1  A: 

Please check my tutorial about reportviewer and mvc2 -> How to use ReportViewer 2010 in MVC.NET 2

Hope it helps you

Sergio