问题描述:

I'm a first timer and I apologize if my questions isn't worded right... I'll try to be as descriptive as possible.

What I'm trying to do is set up a Visual Studio 2010 project for someone who's not a coder but who intends to use VS2010 to create RDLC reports. I wanted to have the reports stored in a class library project that any type of app could conceivably access. The datasource was going to be c# classes in another project that communicates with the DB via an entity model.

What I found when attempting to create a sample report was that, in the class library project I had set up for the reports, when I add a datasource (Data->Add New Datasource...), although I can point it to my data classes, it only sees the properties of those classes, and I can't access the methods that those classes have that actually return the data I need.

On the other hand, if I create the report in a web project as opposed to a class library, the data source wizard allows me to select the methods of those classes. This is what I want to be able to do, but I don't understand why I have to do this in a web project.

Now I'm guessing I'm able to access the data class methods programmatically in the class library project and hook up the report data that way, but I'm trying to set this up for someone who wants to do as little coding as possible. I want him to be able to create a report and hook it up to the data class methods via the gui. Why does the data source wizard behave differently for a class library project and a web project, and is there any way to get around this?

Thanks!

相关阅读:
Top