Iron Speed Technical Forums
Sign up Latest Topics

  Author   Comment  

Posts: 111
Reply with quote  #1 
Thanks in advance,

I'm using Telerik 2015 ASP ReportViewer for about two years. For some reason, I am unable to reference the control behind. 

  1. I have the control on the ASPX page and referenced in the declaration
  2. I dropped the report viewer on  the page

In my code behind, I'm having problems setting the data source and width. For example, I have the following in the 

I'm getting the error that the ReportViewer1 is not a member of the page?

ASPX Page 

<%@ Register Assembly="Telerik.ReportViewer.WebForms, Version=, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %>

<telerik:ReportViewer ID="ReportViewer1" runat="server"></telerik:ReportViewer>

Code Behind 

If RT = "CL" Then
' 'Run the Case Log Report
Dim DM_REPORT_PATH As String = Server.MapPath(Directory & "DM_CASE_LOGNOTES.trdx") ' 'Fetch the assigned report from the Report Folder.

' 'Set the Report Source to the Report Path
 uriReportSource.Uri = DM_REPORT_PATH

 Me.ReportViewer1.Width = 1080
 Me.ReportViewer1.Height = 875



Posts: 28
Reply with quote  #2 
I use the find control recursively function in the code behind to get the control.
Previous Topic | Next Topic

Quick Navigation:

Easily create a Forum Website with Website Toolbox.

Download Iron Speed Designer

Terms of Service Privacy Statement