Has anyone connected to Reporting Q2 2009 using Enterprise Library 4.1 DAAB?
I've reviewed the Code Examples and Videos, 22Reporting ConnectingToData however I was unable to find a way.
Are there any short online examples of this type of data connection?
3 Answers, 1 is accepted
answered on 14 Jul 2009, 11:45 AM
Telerik Reporting does not provide its own data layer but depends on
the existing .NET objects (DataSet, Data Table, DataView, ADO.NET,
lists - for more information on report data binding, please, refer to this help topic).
In this line of thoughts, it is neither aware nor does it matter to it how/where the data is coming from. It is up to the developer to prepare the data and bind the report in a suitable way. You can do this either in the report constructor, through the NeedDataSource event or even through the calling application.
The problem that I'm having with this is that I cannot test with the Designer. The report fails because it cannot find the Enterprise Library dll even though it is referenced in the project. I assume this is so because the Designer is running under the context of Visual Studio. Any suggestions?
answered on 05 Jan 2010, 12:38 PM
Please define what you mean by not working. If you expect that you would have your business objects available in the Data Explorer, then you are wrong, as you should have a datasource set in the designer for that.
If you simply cannot use the Previews in design time, then have in mind that the Telerik Report Designer operates inside the Visual Studio application. When previewing a report, the project that contains the report is compiled (if needed) and the report class is instantiated through Reflection, and passed to the previewer. This means that the report constructor is executed in the context of the Visual Studio application, so the current application is devenv.exe. Have in mind that the valid config file in this case is the devenv.exe.config file and any connectionStrings or references to your DAL should be added in that config when previewing and external assemblies present in the same folder.