User variables
I am sorry but I am not able to find how to manage user variables. For example [ReportTitle], [LicenseName], etc..
Is there a way to assign values to variables from the designer side in the same way of FR4?
I can use a custom function like MyUserVar("ReportTitle"), but I would like to know if it is possible to do it via [ReportTitle]
Thank you
Is there a way to assign values to variables from the designer side in the same way of FR4?
I can use a custom function like MyUserVar("ReportTitle"), but I would like to know if it is possible to do it via [ReportTitle]
Thank you
Comments
http://fast-report.com/documentation/UserM...tparameters.htm
I see SetParameterValue() but it seems to assign values, I would need to register it in FR with name, type and value.
Thank you
The parameters are stored in the report.Dictionary.Parameters collection.
Parameter par = new Parameter();
par.Name = "MyParameter";
par.DataType = typeof(int);
par.Value = 3;
report.Dictionary.Parameters.Add(par);
The simpler way is to call report.SetParameterValue("MyParameter", 3). It will do the same.