Pregunta

I'm using VisualStudio 2012. I wanna create a demonstration project to be deployed in IIS.

This project must have an aspx page with a ReportViewer which will show a local processing report. By local report, I mean it won't use Reporting Service, the project's compiled code must build its own report.

I'm using the tutorial at http://msdn.microsoft.com/en-us/library/ms251784.aspx

But when I create a report from Report Wizard, "Choose a Data Source Type page" isn't shown. I'm presented to the "Choose Your Data Connection page", where I should set a connection to a DBMS.

I don't wanna create the report from a DBMS, I want an Object Data Source. It will be a List of Plain Old C# Classes, that will be fed to the report. I don't want the report viewer to access the DBMS directly.

BusinessObjects.cs was properly created and it's in the root of the project.

I F6 compiled the solution, cleaned it, closed VS and reopened. It simply doesn't let me create a data source that's not from a DBMS.

Is there anything the tutorial ommited and I'm missing?

¿Fue útil?

Solución

I solved it.

I created a new project with a "ASP.NET Empty Web Application" template. Inside the solution I created another project with a "ASP.NET Server Control" template.

I used the serve control project as application layer, and the empty webapp project as presentation/UI layer.

In application project I created the Object Data Source and added that project to UI project's reference. With that I was able to create an asp page in UI project that consumes the application object data source.

GG

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top