How to set DesinerForm's localization in code
The "Select Language....."in the "File" Menu may set DesinerForm's localization,
how to do in code?
I try to do this, but fail, my code is
It seems to have memory cache.
how to do in code?
I try to do this, but fail, my code is
FastReport.Utils.XmlDocument xmlConfig = new FastReport.Utils.XmlDocument();
xmlConfig.Load(System.IO.Path.Combine(FastReport.Utils.Config.Folder, "FastReport.config")); ;
FastReport.Utils.XmlItem xmlLan = xmlConfig.Root.FindItem("Language");
xmlLan.SetProp("Name", "Chinese (Simplified)");
xmlConfig.AutoIndent = true;
xmlConfig.Save(System.IO.Path.Combine(FastReport.Utils.Config.Folder, "FastReport.config"));
or
FastReport.Utils.XmlItem xmlLan2 = FastReport.Utils.Config.Root.FindItem("Language");
xmlLan2.SetProp("Name", "Chinese (Simplified)");
It seems to have memory cache.
Comments
// do this to ensure that FastReport config file is loaded
using (Report report = new Report());
// load the locale then.
Res.LoadLocale(name_of_frl_file_including_full_path);