How to design report with DesignerControl?
I use code like this. But designer will be show empty.
                Report report = new Report())
                Form form = new Form();
                DesignerControl designer = new DesignerControl();
                designer.Parent = form;
                designer.Dock = DockStyle.Fill;
                report.Designer = designer;
                report.Load(@"D:\MyReport.frx");
                report.RegisterData(MyDataTable, "MyTable");
                report.Prepare();
                report.Design();
                form.WindowState = FormWindowState.Maximized;
                form.Show();
Comments
I need do this: instead of this:
Why it is in PreviewControl in opposite way that in Design control?
Try this:
Thank you for fast answer. Excatly hat was problem.
Why it is different in preview control and designer control?
Thank you.