Returns a reference to the data source query parameters collection.
[Visual Basic]
Public ReadOnly Property Parameters As Parameters
[C#]
public Parameters Parameters {get;}
An initialized Parameters collection.
The parameters collection is automatically populated when the report is started. If parameters are specified in the report's DataSource, they will be added to the collection.
For example, setting your RecordSource to the following SQL adds "Order Date" and "Order ID" to the parameters collection.
"SELECT * FROM orders WHERE OrderDate >= #<Order Date|Enter Order date|1/1/1995># AND OrderID > <OrderID|Order ID>"
You can set the parameter values before the report starts or allow ActiveReports to collect the values from the user at run time.
Note: Depending on your data source, you may need to add pound signs around the parameter syntax for dates (as in the "Order Date" example above) or apostrophes around the parameter syntax for strings, i.e. "SELECT * FROM Customers WHERE CustomerID = '<CustomerID>'"
[C#]
Private void viewer1_HyperLink(object sender, DataDynamics.ActiveReports.Viewer.HyperLinkEventArgs e) |
[Visual Basic]
Private Sub Viewer1_HyperLink(ByVal sender As Object, ByVal e As DataDynamics.ActiveReports.Viewer. _ |
ActiveReport Class | ActiveReport Members | ShowParameterUI
Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.