See Also

Parameter Class  | Parameter Members  | Parameter.DataType Enumeration

Language

Visual Basic

C#

Show All

See Also Languages ActiveReports Send feedback to Data Dynamics

Type Property

Gets or sets a value that determines the type of input control to be created to collect the parameter value from the user.

[Visual Basic]
Public Property Type As Parameter.DataType
[C#]
public Parameter.DataType Type {get; set;}

Return Type

A DataType enumeration value that determines the type of control to be created for the parameters input dialog.

Remarks

ActiveReports creates the parameters intput dialog for the user dynamically based on the number of parameters and their type.  By default, all parameters are considered strings.  You can specify a Boolean control (checkbox) or a Date (calendar) control instead of a standard textbox.

Example

[C#] 

private void rptDataDynamics_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 = Parameter.DataType.String; 
}

[Visual Basic] 

Private Sub rptDD_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 = Parameter.DataType.String
End Sub

See Also

Parameter Class  | Parameter Members  | Parameter.DataType Enumeration

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.