ActiveReports 19 .NET Edition
MESCIUS.ActiveReports Assembly / GrapeCity.ActiveReports.Document Namespace / PageDocument Class / Parameters Property
Example

In This Topic
    Parameters Property (PageDocument)
    In This Topic
    Gets the parameters for the report.
    Syntax
    'Declaration
     
    Public ReadOnly Property Parameters As ParameterCollection
    public ParameterCollection Parameters {get;}

    Property Value

    A GrapeCity.ActiveReports.Core.Rendering.ReportParameters.ParameterCollection value representing parameters for the report.
    Example
    PageReport pageReport = new PageReport(file);
    var parameter = pageReport.Document.Parameters["Parameter1"];
    parameter.Values.Clear();
    parameter.Values.AddRange(new[] 
    { 
    	new ParameterValue { Value = "TestValue1" },
    	new ParameterValue { Value = "TestValue2" } 
    });
    parameter.CurrentValue = "TestValue1";
    See Also