private void RibbonForm1_Load(object sender, EventArgs e) { this.IsMdiContainer = true; this.clientPanel.Visible = false; designerForm = new XRDesignRibbonFormEx(); designerForm.DesignPanel.ExecCommand(ReportCommand.NewReport); designerForm.MdiParent = this; designerForm.Show(); }
private void btnDesign_Click(object sender, EventArgs e) { if (File.Exists("Report.repx")) { XtraReport report = XtraReport.FromFile("Report.repx", true); XRDesignRibbonFormEx designer = new XRDesignRibbonFormEx(); designer.DesignPanel.Activated += new EventHandler(DesignPanel_Activated); designer.OpenReport(report); designer.Show(); } }