Created a report in the standalone designer and need to utilize it form within Visual Studio. I have a parameter in both the SQL query and a report parameter, both named Cust_ID.
In trying to utilize the uriReportSource, as described in other forum posts, I get an error message as seen in the attached screenshot.
The statement.trdx is in the same directory as my view_statement.aspx page that is trying to render it within the rptstatement viewer.
This is my code:
Public Class view_statement Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not IsPostBack Then Dim report As New Telerik.Reporting.UriReportSource() report.Uri = "statement.trdx" If Request("Cust_ID") IsNot Nothing Then Dim CustID As Integer = 0 If Integer.TryParse(Request("Cust_ID").ToString(), CustID) Then report.Parameters.Add(New Telerik.Reporting.Parameter("Cust_ID", CustID)) End If End If rptStatement.ReportSource = report End If End SubEnd Class
Where am I going wrong?
Thank you,
David