Iron Speed Technical Forums
Register Latest Topics
 
 
 


Reply
  Author   Comment  
REESEMI

Registered:
Posts: 109
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=9.1.15.702, 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

end 





ejs

Registered:
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
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.

Download Iron Speed Designer

Terms of Service Privacy Statement