Note that there are some explanatory texts on larger screens.

plurals
  1. POSql Reporting services - find item in report - on load
    text
    copied!<p>SQL reporting services has a little search box in the top of the report viewer. When used, it finds the search text, navigates to containing page and highlights the text on the page. My question is how can I do this when the report loads.</p> <p>Currently I have a reportviewer embedded in my page. Is there a method that will find? I am using sql 2008 express and Dot Net 2</p> <p>For example I send the serial number 1234 to the report so that when it opens it acts like the user searched for the text and finds it for them in the report.</p> <hr> <p>Ed gave me the answer to the url part. <code>http://server/Reportserver?/SampleReports/Product Catalog&amp;rc:FindString=mystring</code> but I still can't figure out the reportviewer.</p> <hr> <p>Here is some of the page code:</p> <pre><code>using Microsoft.Reporting.WebForms; protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { Int32 iID = Convert.ToInt32(Request.QueryString["ID"]); String reportsPath = ConfigurationManager.AppSettings["ReportsPath"]; String sReportName = "ReportInvoice"; reportViewer1.Reset(); reportViewer1.ProcessingMode = ProcessingMode.Remote; reportViewer1.ShowParameterPrompts = false; reportViewer1.ServerReport.ReportServerUrl = new Uri(ConfigurationManager.AppSettings["ReportViewerUrl"]); reportViewer1.ServerReport.ReportServerCredentials = new ReportServerCredentials();//http://localhost/reportserver reportViewer1.AsyncRendering = false; ReportParameter[] reportParams = new ReportParameter[1]; reportViewer1.ServerReport.ReportPath = reportsPath + sReportName; reportParams[0] = new ReportParameter("invoiceID", iID.ToString()); reportViewer1.ServerReport.Refresh(); } } </code></pre> <p>Thanks in advance.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload