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

Telerik ReportViewer Error

1 Answer 94 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Harry K
Top achievements
Rank 1
Harry K asked on 16 Aug 2010, 07:49 PM

I have a Telerik Reporting Q3 2009 installed on my system.

But right now I am developing a WPF application and need the Telerik Report Viewer.

I installed the Telerik Report Q1 2010 and I did not uninstall the Telerik Q3 2009.

Do I have to uninstall it? What effect would it have on my application if I uninstalled?

I also have Telerik Rad Controls installed on my system.

I installed the Telerik Q1 2010 and I referenced the Telerik.ReportViewer.wpf  assembly in my VS2008 namespace and then I am trying to add  my Report Viewer to my WPF Window designer and it gives me the following error

Cannot find DependencyProperty or PropertyInfo for property named 'SelectionBoxTemplate'. Property names are case sensitive.  Error at object 'Telerik.Windows.Controls.RadComboBox' in markup file 'Telerik.ReportViewer.Wpf;component/Themes/Default/ReportViewer.xaml'.

   at System.Windows.Markup.XamlParseException.ThrowException(String message, Exception innerException, Int32 lineNumber, Int32 linePosition, Uri baseUri, XamlObjectIds currentXamlObjectIds, XamlObjectIds contextXamlObjectIds, Type objectType)   at System.Windows.Markup.XamlParseException.ThrowException(ParserContext parserContext, Int32 lineNumber, Int32 linePosition, String message, Exception innerException)   at System.Windows.Markup.BamlRecordReader.ThrowExceptionWithLine(String message, Exception innerException)   at System.Windows.Markup.BamlRecordReader.ThrowException(String id, String parameter)   at System.Windows.Markup.BamlRecordReader.ReadPropertyComplexStartRecord(BamlPropertyComplexStartRecord bamlPropertyRecord)   at System.Windows.Markup.BamlRecordReader.ReadRecord(BamlRecord bamlRecord)   at System.Windows.StyleHelper.LoadOptimizedTemplateContent(DependencyObject container, ParserContext parserContext, OptimizedTemplateContent optimizedTemplateContent, FrameworkTemplate frameworkTemplate, IComponentConnector componentConnector, IStyleConnector styleConnector, List`1 affectedChildren, UncommonField`1 templatedNonFeChildrenField)   at System.Windows.FrameworkTemplate.LoadContent(DependencyObject container, List`1 affectedChildren, UncommonField`1 templatedNonFeChildrenField)   at System.Windows.StyleHelper.ApplyTemplateContent(UncommonField`1 dataField, DependencyObject container, FrameworkElementFactory templateRoot, Int32 lastChildIndex, HybridDictionary childIndexFromChildID, FrameworkTemplate frameworkTemplate)   at System.Windows.FrameworkTemplate.ApplyTemplateContent(UncommonField`1 templateDataField, FrameworkElement container)   at System.Windows.FrameworkElement.ApplyTemplate()   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)   at System.Windows.UIElement.Measure(Size availableSize)   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)   at System.Windows.UIElement.Measure(Size availableSize)   at System.Windows.Controls.Border.MeasureOverride(Size constraint)   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)   at System.Windows.UIElement.Measure(Size availableSize)   at MS.Internal.PageControl.DesignTimePage.MeasureOverride(Size constraint)   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)   at System.Windows.UIElement.Measure(Size availableSize)   at MS.Internal.Designer.SimpleViewManager.DesignerBackground.MeasureOverride(Size constraint)   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)   at System.Windows.UIElement.Measure(Size availableSize)   at System.Windows.Controls.Decorator.MeasureOverride(Size constraint)   at Microsoft.Windows.Design.Interaction.DesignerView.MeasureOverride(Size constraint)   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)   at System.Windows.UIElement.Measure(Size availableSize)   at MS.Internal.Designer.Viewport.MeasureOverride(Size availableSize)   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)   at System.Windows.UIElement.Measure(Size availableSize)   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)   at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint)   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)   at System.Windows.UIElement.Measure(Size availableSize)   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)   at System.Windows.UIElement.Measure(Size availableSize)   at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)   at System.Windows.UIElement.Measure(Size availableSize)   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)   at System.Windows.UIElement.Measure(Size availableSize)   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)   at System.Windows.UIElement.Measure(Size availableSize)   at System.Windows.Controls.Control.MeasureOverride(Size constraint)   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)   at System.Windows.UIElement.Measure(Size availableSize)   at System.Windows.Interop.HwndSource.SetLayoutSize()   at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)   at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)   at MS.Internal.Designer.VSIsolatedDesigner.ViewHolder.Initialize()   at MS.Internal.Designer.VSIsolatedDesigner.ViewHolder..ctor(UIElement content)   at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.get_ViewHandle()   at MS.Internal.Host.Isolation.IsolatedView.get_ViewHandle()   at MS.Internal.Designer.DesignerPane.LoadDesignerView()”



Here is my XAML Code in my WPF Window:

<Window

xmlns:my="clr- namespace:Telerik.ReportViewer.Wpf;assembly=Telerik.ReportViewer.Wpf"

xmlns:local="clr-namespace:Telerik.ReportViewer.Common;assembly=Telerik.ReportViewer.Wpf" 

Title="Report" Height="600" Width="600">

    <my:ReportViewer />

</Window>



How can i get rid of this error and continue with my work?

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 19 Aug 2010, 12:56 PM
Hello Harry,

As duly noted in the Using Telerik Reports in WPF application help article, you should first add references to:
  • Telerik.Windows.Controls.dll
  • Telerik.Windows.Controls.Input.dll
  • Telerik.Windows.Controls.Navigation.dll
  • Telerik.Windows.Data.dll
because the WPF report viewer uses our RadControls for Silverlight.

Sincerely yours,
Steve
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
Harry K
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or