set formating parameters from code
Hello,
how can i programticly set the values of format the currency etc.. in one place before the report start, is there an envorinment setting for that ?
or should i go to , every text object control and set it from there , the second solution is very annoying
Thanks in advance
how can i programticly set the values of format the currency etc.. in one place before the report start, is there an envorinment setting for that ?
or should i go to , every text object control and set it from there , the second solution is very annoying
Thanks in advance
Comments
You can do this by program use this code
FastReport.Format.NumberFormat format = new FastReport.Format.NumberFormat();
format.UseLocale = false;
format.DecimalDigits = 2;
format.DecimalSeparator = ".";
format.GroupSeparator = ",";
and following that
textObject.Formats.Clear();
textObject.Formats.Add(format);
Happy coding...
There is no global settings for formatting. You can change the current thread's globals, but this is not a good idea.
thanks