Solved

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

Posted on 2013-12-05
4
3,563 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
  • 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

How to use Variables  and Custom code in SSRS report and Assembly reference to use compile shared code in SSRS. Its big question for all who are working with SSRS. It is easy to create assembly and refer in SSRS report, still there are some steps…
Introduction In the following article I’ll be discussing and demonstrating several different ways of how images can be put on a report. I’m using SQL Server Reporting Services 2008 R2 CTP, more precisely version 10.50.1352.12, but the methods ex…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

803 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