designerControl.SaveConfig and .RestoreConfig

I cannot seem to get these to work properly designerControl.SaveConfig and .RestoreConfig

Here is my code in Form.Load
        private void Form1_Load(object sender, EventArgs e)
        {
            if (!string.IsNullOrWhiteSpace(Program.gCMDLineReport))
            {
                try
                {
                    Report r = new Report();
                    r.Load(Program.gCMDLineReport);
                    ReportInfo.FilePath = Program.gCMDLineReport;
                    ReportInfo.ReportName = Path.GetFileName(Program.gCMDLineReport);
                    ReportInfo.ReportSource = RPT_LOAD_METHOD.FILE;
                    ReportInfo.ReportIsCustom = false;
                    ReportInfo.ReportObject = r;
                    designerControl1.Report = ReportInfo.ReportObject;
                    this.Text = Program.APP_TITLE + "-- " + ReportInfo.ReportName;
                }
                catch (Exception ex)
                {
                    MessageBox.Show("Error Loading report (" + Program.gCMDLineReport + "):\n" + ex.Message);
                }
            }
            else
            {
                designerControl1.Report = new FastReport.Report();
            }

            designerControl1.RefreshLayout(); //Need this to refresh the windows (props and database info on right)
            designerControl1.RestoreConfig();
        }

Here is my code in Form.Closing
        
private void frmDesigner_FormClosing(object sender, FormClosingEventArgs e)
        {
            Settings.WindowPos.Save(this, Program.gWindowSettingsFile, Program.APP_TITLE);
            designerControl1.SaveConfig();
        }

This seems to work on some parts of the designer and not others. Suggestions?? Thoughts??

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.