Hi
I am trying to add my first parameterised report to an ASP.net WebForms application. I cannot figure out how to pass the parameter. Having searched, a lot of posts are old, lead to blank pages, examples that use the old report viewer not the HTML 5 one and I cannot convert it etc.
I have created a .trdp file and added it to the project. It takes a parameter and the report works in preview, if I Hard code the parameter.
My front end code to add the report viewer is:
01.<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="ContractDisplay2.aspx.vb" Inherits="Intranet3.ContractDisplay2" %>02. 03.<%@ Register Assembly="Telerik.ReportViewer.Html5.WebForms, Version=12.2.18.1129, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer.Html5.WebForms" TagPrefix="telerik" %>04. 05.<!DOCTYPE html>06. 07.<html xmlns="http://www.w3.org/1999/xhtml">08.<head runat="server">09. <title></title>10.</head>11.<body>12. <form id="form1" runat="server">13. <div>14. <p>report:</p>15. <telerik:ReportViewer ID="ReportViewer1" runat="server" style="border:1px solid #ccc;"16. width="99%" height="99%"/>17. </div>18. </form>19.</body>20.</html>
and in my code behind I have this:
1.Dim reportSource As New Telerik.ReportViewer.Html5.WebForms.ReportSource()2. reportSource.IdentifierType = Telerik.ReportViewer.Html5.WebForms.IdentifierType.UriReportSource3. reportSource.Identifier = "ConsignmentProductReport.trdp"4. reportSource.Parameters.Add("AccountNo", "ABC123")5. ReportViewer1.ReportSource = reportSource
The problem is that when I run it, the report is not rendered.
Please can someone advise how to do this using WebForms / HTML5 viewer and .trdp files?
Thanks
