designerControl.SaveConfig and .RestoreConfig
I cannot seem to get these to work properly designerControl.SaveConfig and .RestoreConfig
Here is my code in Form.Load
Here is my code in Form.Closing
This seems to work on some parts of the designer and not others. Suggestions?? Thoughts??
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??