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

Creating WPF ReportViewer from WindowForms Throws NullreferenceException

3 Answers 80 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Boots
Top achievements
Rank 1
Boots asked on 13 May 2010, 08:56 PM
Hello,

I'm trying to do Telerik.ReportViewer.Wpf.ReportViewer rv = new Telerik.ReportViewer.Wpf.ReportViewer(); in WindowsFormsApplication and receiving NullReferenceException. Was wondering if you had any ideas? Its not a big deal for us, we're still stuck inside WindowsForms till end of the year or begging of next. I was hoping to style it similar to our other wpf applications.

Attached is image of the StackTrace unfortunately its not very helpful.

Thanks Much,
~Boots

3 Answers, 1 is accepted

Sort by
0
Accepted
Steve
Telerik team
answered on 17 May 2010, 03:11 PM
Hi Boots,

Please use the Windows Forms Report Viewer when you have Windows Forms app. The native WPF viewer is meant to be used in WPF application only.

Best wishes,
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.
0
Alon
Top achievements
Rank 1
answered on 13 Sep 2010, 04:39 PM
Has this been fixed in Q2 2010?  Is is now possible to embed a wpf reportviewer in a winform?
thanks,
Alon
0
Peter
Telerik team
answered on 14 Sep 2010, 03:12 PM
Hi Alon,

This bug is fixed in Telerik Reporting Q2 2010. For more information on the bugs that have been fixed check out the Release notes

Regards,
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
Boots
Top achievements
Rank 1
Answers by
Steve
Telerik team
Alon
Top achievements
Rank 1
Peter
Telerik team
Share this question
or