Search Results for

    Show / Hide Table of Contents

    FlexCelReport.SetValue Method

    Sets a variable for the report.

    Syntax

    Namespace: FlexCel.Report

    public void SetValue(String name, Object value)

    Parameters

    <-> Parameter Type Description
    name String Name of the variable to set. Case insensitive.
    value Object Value of the variable.

    Examples

    You can define a variable "CurrentDate" on the following way:

        flexCelReport.SetValue("CurrentDate", DateTime.Now);
    

    Then, if you write <#CurrentDate> on a cell, the date will be shown. Note that the name is case insensitive, so both "CURRENTDATE" and "currentdate" refer to the same variable.

    See also

    • FlexCelReport
    In This Article
    Back to top FlexCel Studio for the .NET Framework v7.24.0.0
    © 2002 - 2025 tmssoftware.com