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.