views:

263

answers:

4

Hi,

After building my application in ASP.NET MVC and MS sql server, I would now like to display some statistics regarding my data.

What would be the easiest way to create HTML reports which are built of data crossing several tables? (Once the fields are picked they'll be static, meanning a single view is required)

I though their ought to be something in the lines of a wizard letting you drag fields from your tables to a form and generates the logic behind...

Thanks

Teddy

+1  A: 

Microsoft Reporting Services?

Justin Niessner
It seems that this is the tool that I was looking for, however it is not included in the Express edition (2008). Am I correct?Is there anything like that freeware?
Wesly
Check this link: http://technet.microsoft.com/en-us/library/ms365166.aspx There is a subset of SSRS available in SQL Express.
Justin Niessner
A: 

"I though their ought to be something in the lines of a wizard letting you drag fields from your tables to a form and generates the logic behind..." - this is the basic idea behind ASP.NET WebForms. But, please do not abandon MVC in favour of WebForms.

One way to achieve what you want is to create a class representing your stats, e.g.

public class Statistic
{
    public string TableName { get; set; }
    public int RowCount { get; set; }
}

Your Model code could populate an IList<Statistic> instance which is passed to your View, which renders the stats accordingly.

AdamRalph
But then will the view rendering could be automaticly generated from class Statistic?
Wesly
+1  A: 

I wrote a blog post about this in September. It's a way to render a PDF content type using an RPT file in the application. It covers everything except the creation of the RDLC file, including how to write unit tests for the controller.

Jarrett Meyer
Link is broken?
adriaanp