Problem
I want to add a Report (.rdlc) to my web projet. I need the report to use an object data source, not directly connect to a database.
My issue is that when I run the "Report Wizard" or when I add a new Dataset to the report, the Data Source Configuration Wizard only allows me to use the database. However, in a library project the Data Source Configuration Wizard is completely different and gives me several choices.
I checked with Visual Studio 2013 and 2015 (Community Editions)
Questions
Why is it that I'm experiencing a different behavior when I'm adding a Report (.rdlc) to a library project and a web projet ? And how can I select and/or add an object Data Source to my web project ?
Steps to reproduce:
- Create a new "Asp.NET Web Application". I used the empty template.
- Add a new item: "Report Wizard"
Then following windows will open:
- Add a new project of type "Class Library" to the same solution.
- Add a new item: "Report Wizard" (to the library project)
Now I get this screen (That's the screen I want in the web project):
Another difference I noted is the Project menu:
In the library project I have "Add New Data Source..."
But in the web project there is no such thing...