New to Telerik Reporting? Download free 30-day trial

NullReferenceException in WPF report viewer after invoking search dialog

Environment

Product Version 12.1 18.516
Product Progress® Telerik® Reporting

Description

Invoking the search dialog in WPF report viewer results in NullReferenceException.

Cause\Possible Cause(s)

XAML template of WPF report viewer (Telerik.ReportViewer.Wpf.xaml) is missing the elements required by the search functionality that was introduced in version 12.1 18.516. This can happen if the template was not updated after upgrading the project to the version 12.1 18.516.

Solution

Viewer's template needs to be updated manually with the one provided with version 12.1 18.516. It can be found in [Telerik Reporting installation folder]\Progress\Telerik Reporting R2 2018\Wpf\Themes\[ThemeName] folder.

Custom templates need to be merged manually.

See Also

WPF viewer manual setup

In this article