I have a store procedure and a webform(aspx.net) with ASPxDocumentViewer1 how i can send parametters programmatic to th report.
the report is bind to the store procedure i use vb.net
Hi Francisco,
To accomplish this task, utilize the approach demonstrated in the following help topic:
How to: Silently Pass a Parameter's Value
In short, you need to create a Report instance in the Page.Load event handler, assign the required parameter values, and then pass your Report instance to the ASPxDocumentViewer.Report property:
[C#]
protected void Page_Load(object sender, EventArgs e) { XtraReport1 report = new XtraReport1(); report.Parameters["yourParameter1"].Value = firstValue; report.Parameters["yourParameter2"].Value = secondValue; ASPxDocumentViewer1.Report = report; }
https://docs.devexpress.com/XtraReports/DevExpress.XtraReports.UI.XtraReport.Parameters
This document provides general information on query parameters and describes common ways of utilizing parametrized SQL queries to filter data on the data source level.