Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RDLC reports with ASP.net MVC 3.0

I'm trying to add business object data source for RDLC report in my MVC 3.0 application.However, it couldn't allow me to add object data source to my application.

How I add object data source to my RDLC report ?

like image 980
marvelTracker Avatar asked Dec 01 '25 10:12

marvelTracker


1 Answers

Just add an aspx page with all the functionalities you need as you would in a standard WebForms application. You will just need to add a route to it. Here is an example that will probably suite your needs:

public static void RegisterRoutes(RouteCollection routes)
{
    // ...
    // Some MVC routes
    // ...

    //Custom route for reports
    routes.MapPageRoute(
       "ReportRoute",                  // Route name
       "Reports/{reportname}",         // URL
       "~/Reports/{reportname}.aspx"   // File
    );
}
like image 122
shizik Avatar answered Dec 03 '25 18:12

shizik



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!