Solved

Using class as data source for End User Reporting (rdlc)

Posted on 2013-12-05
4
3,683 Views
Last Modified: 2013-12-06
I have developed an application in VB.Net (VS 2008) that contains a number of reports.  Currently these are all set as EmbeddedResource reports, which works fine.

I know I could also set the Reports as external to my application using the ReportPath option too, which got me thinking.

I would like the end user (at least one trained in report writing) to be able to modify or even create these RDLC files.  I assume Visual Studio Report designer is the best tool for this (if there's a better one, please let me know).

That would be fine if the data sources were SQL Tables, but I use classes as Business Objects as my datasources.  That means I create the Business Object programatically as pass it as the data source when using ReportViewer.

I could still do that as the modified RDCL files would still be called from within my application but how can the end user, when using Report Designer, access the Business Object 'schema'?  I know they will need to come back within the application to preview the report with data but is there any way I can export the Data Source from my VB.NET project so the fields/members are available for report design outside of my project?

Hope that makes sense.  Let me know if not.
0
Comment
Question by:WestcountryBusiness
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
ItWorked earned 500 total points
ID: 39697882
@WestcountryBusiness,

Using RDLC is cumbersome but when it comes to paying for license it's the only choice from Microsoft.

Crystal Reports are widely used for ERPs and Web applications. You can even have HTML reporting as well but that depends on requirement.

Coming to your technical requirement, Yes you can use your entity classes as Data Soruce for RDLC/Crystal Report data source.

While designing you need to have data soruce which is DataSet (for both).

Add DataSet (.XSD) in your project without Data Adapter(don't take it from SQL query or wizard. Just completely blank DataSet).

Add Columns into your DataTable which is in DataSet. Now you can use this data set for designing your report.

Make sure (DataTable name must be same as your entity list name, Columns name must be same as Properties name).

I have been doing list this.

FYI :This may help ! :-)
0
 
LVL 1

Author Comment

by:WestcountryBusiness
ID: 39698670
Thanks, that's helped a lot.  I've got a solution although it varies from this a little.

In Visual Studio I created a new project as a "Reports Application".  When it asked me for a data source, I chose Object.  I could then browse to the exe file that is my compiled application and it picked up all the data sources defined in it.  Really easy, which was a relief.

Happy to award points as it got me going but would like to ask one more question, if poss.  I'd like my end user (OK, it would be a IT literate end user) to create these reports.  No problem, but they don't have Visual Studio and a license cost would be a barrier.

I've tried doing this with the VS Express package, but that doesn't seem to offer the option to create a reports application.  Is that right?

The client has SQL Reporting Services and VS Business Intellegence Development Studio but that creates RDL files.  I know I could convert them, but in the BI studio, I can't specify the object data source.

Do any of the free VS Express packages offer the ability to create a Reports Application?

Thanks
0
 
LVL 4

Expert Comment

by:ItWorked
ID: 39700133
I haven't came across such requirement ever. But seems to be pretty difficult
0
 
LVL 1

Author Closing Comment

by:WestcountryBusiness
ID: 39700494
I found this.  Not yet tried it but looks like a way to install report builder in Visual Studio Express 2012, which would offer a free tool for creating report definitions.

http://www.vbforums.com/showthread.php?717175-How-to-use-Report-Viewer-with-Visual-Studio-2012-Express

I marked the solution as 'good' because although it wasn't the solution I implemented, it did get me started in the right direction.  Many thanks.
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code started out as a fix for a customer that had incoming data that was hunderds of numbers and words long that was to fit in one column. The problem was that the customer did not want to split words or numbers when wrapping in the column. …
Hi All, I am here to write a simple article to move SSRS (SQL Server Reporting Services) reports from one server to another. When I have faced the same issue to move reports those were developed by developer on development server and now need to …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question