This is a migrated thread and some comments may be shown as answers.

Enterprise Library 4.1

3 Answers 34 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
DavidT
Top achievements
Rank 1
DavidT asked on 09 Jul 2009, 03:19 PM
Hello,

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?

Many thanks

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 14 Jul 2009, 11:45 AM
Hello DavidT,

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.

Sincerely yours,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jeff Berry
Top achievements
Rank 2
answered on 04 Jan 2010, 09:19 PM
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?
0
Steve
Telerik team
answered on 05 Jan 2010, 12:38 PM
Hello Jeff,

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.

Best wishes,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
DavidT
Top achievements
Rank 1
Answers by
Steve
Telerik team
Jeff Berry
Top achievements
Rank 2
Share this question
or