Search Results for

    Show / Hide Table of Contents

    Passing a value to a report parameter

    The report may have parameters. Read more about this in the User's Manual. To pass a value to the parameter, use the SetParameterValue method of the Report object:

    report1.Load("report.frx");
    report1.SetParameterValue("MyParam", 10);
    report1.Show();
    

    This method is declared as follows:

    public void SetParameterValue(string complexName, object value)
    

    Specify the parameter's name in the complexName parameter. To access a nested parameter, use its full name, for example:

    "ParentParameter.ChildParameter"
    
    Back to top © 1998-2025 Copyright Fast Reports Inc.