FastReports / FastReport

Free Open Source Reporting tool for .NET6/.NET Core/.NET Framework that helps your application generate document-like reports
https://www.fast-report.com
MIT License
2.67k stars 590 forks source link

`DesignerControl` sometimes doesn't show `code` & `page` tab #496

Closed itsalongstory closed 1 year ago

itsalongstory commented 1 year ago

image


image

After resize the window, the code & page tab will show up.

Yamasiash commented 1 year ago

Can you tell me the exact steps to reproduce the error?

itsalongstory commented 1 year ago

Can you tell me the exact steps to reproduce the error?

@Yamasiash

image

        private void Form1_Load(object sender, EventArgs e)
        {

            string report_name_1 = "report 1.frx";
            string report_name_2 = "report 2.frx";
            string report_name_3 = "report 3.frx";

            this.treeView1.Nodes.Add(report_name_1);
            this.treeView1.Nodes.Add(report_name_2);
            this.treeView1.Nodes.Add(report_name_3);

        }

        private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
        {

            try
            {
                report.Load(this.treeView1.SelectedNode.Text);
                this.designerControl1.Report = report;
                this.designerControl1.RefreshLayout();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }

https://github.com/itsalongstory/fast-report-demo-issue

I've pushed a simplest demo repo to reproduce the error: select the reports in turn and see the behavior of the DesignerControl.

itsalongstory commented 1 year ago

Can you tell me the exact steps to reproduce the error?

@Yamasiash @Pentium133 @mandrookin @daviddesmet

Can you reproduce this error on your own computers?

itsalongstory commented 1 year ago

designerControl1.UpdateUIStyle();