Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 2.05 KB

File metadata and controls

53 lines (40 loc) · 2.05 KB
title Cannot Show Reports in the ReportViewer
page_title Unable to Show Reports in the ReportViewer
description Learn how to programmatically specify a report in a separate class library in the Telerik ReportViewer.
slug cannot-show-report-reportviewer
previous_url /troubleshooting/design-time
tags telerik, reporting, design, time, cannot, show, report, reportviewer
published true
component reportviewer
type troubleshooting
res_type kb

Environment

Product Progress® Telerik® Reporting Progress® Telerik® ReportViewer
Version Q2 2012 and later
Report Viewers Legacy ASP.NET WebForms Viewer

Description

The described scenario and suggested solution relate to the legacy ASP.NET WebForms ReportViewer. It is recommended that you migrate to the HTML5 ReportViewer.

I want to show my report in a ReportViewer control, but when I click the arrow in the ReportSource property from the property grid, it does not show available reports. What is wrong?

Cause

....

Solution

Follow the Telerik Reporting best practices and specify the report in a separate class library that is referenced in the application or website. Check if the class library containing the report is referenced in your application or website and that you have rebuilt the project.

The most reliable way to handle this scenario is to programmatically specify a report for the ReportViewer. For example, if you're using the ASP.NET ReportViewer, state the following in the Page_Load event of the page:

{{source=CodeSnippets\CS\API\Telerik\ReportViewer\WebForms\WebForm1.aspx.cs region=Webviewer_SetReportSource}} {{source=CodeSnippets\VB\API\Telerik\ReportViewer\WebForms\WebForm1.aspx.vb region=Webviewer_SetReportSource}}