Issues Setting RDLC Datasource to Object

前端 未结 5 488
长情又很酷
长情又很酷 2020-12-30 01:53

Background:

I\'ve been tasked with converting an Access database application to ASP.Net C# MVC. This is my first MVC application.

There are

5条回答
  •  佛祖请我去吃肉
    2020-12-30 02:11

    I've just come across this same issue when trying to create RDLC reports in an ASP.NET MVC project in Visual Studio 2017, so I'm adding this as a separate answer to make it clear this is still an issue at January 2018.

    My solution consisted of a C# library project and an MVC client project.

    Adding reports (by choosing at add a new item, then choosing a Report Wizard item) in the C# library project brings up the Report Wizard with the Data Source Configuration Wizard (where I can choose whether to use a Database, Service or an Object as the datasource) modally on top of it:

    Whereas, choosing to add a new report wizard item in the MVC project just brought up the Report Wizard without the Data Source Configuration Wizard:

    I tried adding business object classes into my MVC project, recompiling it and then adding a Report to the MVC Project again, but I still got the second screenshot, so it seems like you just don't get the Data Source Configuration Wizard when adding to MVC projects for some reason.

提交回复
热议问题