ActiveReports Developer 7
Parameter Class
Members  Example  See Also 
GrapeCity.ActiveReports.v7 Assembly > GrapeCity.ActiveReports.SectionReportModel Namespace : Parameter Class

Glossary Item Box

A Parameter is used to substitute values for parameter placeholders in the report's data source SQL query text.

Object Model

Parameter Class

Syntax

Visual Basic (Declaration) 
Public Class Parameter 
C# 
public class Parameter 

Example

C#Copy Code
private void SectionReport1_ReportStart(object sender, System.EventArgs eArgs)
{
    this.Parameters[0].DefaultValue = "Germany";
    this.Parameters[0].Key = "country";
    this.Parameters[0].Prompt = "Country: ";
    this.Parameters[0].Tag = "some extra data";
    this.Parameters[0].Type = GrapeCity.ActiveReports.SectionReportModel.Parameter.DataType.String;
}
Visual BasicCopy Code
Private Sub SectionReport1_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart
    Me.Parameters(0).DefaultValue = "Germany"
    Me.Parameters(0).Key = "country"
    Me.Parameters(0).Prompt = "Country: "
    Me.Parameters(0).Tag = "Some extra data"
    Me.Parameters(0).Type = GrapeCity.ActiveReports.SectionReportModel.Parameter.DataType.String
End Sub

Inheritance Hierarchy

System.Object
   GrapeCity.ActiveReports.SectionReportModel.Parameter

See Also

Reference

Parameter Members
GrapeCity.ActiveReports.SectionReportModel Namespace
ActiveReports6~GrapeCity.ActiveReports.ParameterCollection
Parameters Property