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

Can't create report

3 Answers 393 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Zbigniew Kozłowski
Top achievements
Rank 1
Zbigniew Kozłowski asked on 26 Apr 2010, 02:53 PM
Hi,
im new in reporting, and just wanted to add report to mine project, but when i create a reporte file ive got an error:
Could not find type "Telerik.Reporting.Report". Please make sure that the assembly that contains this type is referenced......

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 29 Apr 2010, 09:41 AM
Hello Zbigniew Kozłowski,

Do you follow our best practices to first create a class library that contains your reports and then reference that class library in applications that view the reports? This way you can have any number of Windows or Web viewing applications that get re-use out of the same class library.

Check out the following help article Creating a Simple Report for detailed explanation of how to create a report.

All the best,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Scott R
Top achievements
Rank 1
answered on 04 Jun 2010, 04:06 PM
You might want to check your Framework Target as it appears that Telerik reporting does not work with Framework 4 Client Profile (which is the default if you create an Outlook Add-In project).

Telerik.Reporting.dll has the following dependencies which are (I assume) not part of the Framework 4 Client Profile:

 

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3253: The referenced assembly "Telerik.Reporting, Version=4.0.10.421, Culture=neutral, PublicKeyToken=a9d7983dfcc261be, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.  
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3253: The referenced assembly "Telerik.Reporting, Version=4.0.10.421, Culture=neutral, PublicKeyToken=a9d7983dfcc261be, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.  
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3253: The referenced assembly "Telerik.Reporting, Version=4.0.10.421, Culture=neutral, PublicKeyToken=a9d7983dfcc261be, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Data.OracleClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.  
 
0
Peter
Telerik team
answered on 07 Jun 2010, 05:45 PM
Hi Scott R,

You are correct .NET Framework 4 Client profile, is not supported by Telerik Reporting. In order to make it work you have two options:

  • change the target framework to .NET 4 Framework (not the client profile)
  • add a separate class library to hold your reports as suggested in the Best Practices and Quickstart help articles. 

Best wishes,
Peter
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Zbigniew Kozłowski
Top achievements
Rank 1
Answers by
Peter
Telerik team
Scott R
Top achievements
Rank 1
Share this question
or