public bool ShowpageEditDesign() { try { ReportDesignTool rrtDT = new ReportDesignTool(rrt); GroupAndSortDockPanel groupSort = (GroupAndSortDockPanel)rrtDT.DesignRibbonForm.DesignDockManager[DesignDockPanelType.GroupAndSort]; groupSort.Visibility = DockVisibility.AutoHide; ErrorListDockPanel errorList = (ErrorListDockPanel)rrtDT.DesignRibbonForm.DesignDockManager[DesignDockPanelType.ErrorList]; errorList.Visibility = DockVisibility.AutoHide; FieldListDockPanel fieldList = (FieldListDockPanel)rrtDT.DesignRibbonForm.DesignDockManager[DesignDockPanelType.FieldList]; fieldList.Visibility = DockVisibility.AutoHide; ReportExplorerDockPanel reportExplorer = (ReportExplorerDockPanel)rrtDT.DesignRibbonForm.DesignDockManager[DesignDockPanelType.ReportExplorer]; reportExplorer.Visibility = DockVisibility.AutoHide; PropertyGridDockPanel propertyGrid = (PropertyGridDockPanel)rrtDT.DesignRibbonForm.DesignDockManager[DesignDockPanelType.PropertyGrid]; propertyGrid.Visibility = DockVisibility.AutoHide; ToolBoxDockPanel toolBox = (ToolBoxDockPanel)rrtDT.DesignRibbonForm.DesignDockManager[DesignDockPanelType.ToolBox]; toolBox.Visibility = DockVisibility.AutoHide; mdiController = rrtDT.DesignRibbonForm.DesignMdiController; mdiController.DesignPanelLoaded += new DesignerLoadedEventHandler(mdiController_DesignPanelLoaded); rrtDT.ShowRibbonDesignerDialog(); if (mdiController.ActiveDesignPanel != null) { mdiController.ActiveDesignPanel.CloseReport(); } if (coluu) { coluu = false; return(true); } else { return(false); } } catch (Exception) { return(false); } }
private void button1_Click(object sender, EventArgs e) { // Create an End-User Designer form. XRDesignForm designForm = new XRDesignForm(); // Open a new blank report in it. designForm.OpenReport(new XtraReport1()); // Access the Group and Sort panel. GroupAndSortDockPanel groupSort = (GroupAndSortDockPanel)designForm.DesignDockManager[DesignDockPanelType.GroupAndSort]; groupSort.Visibility = DockVisibility.AutoHide; // Access the Script Errors panel. ErrorListDockPanel errorList = (ErrorListDockPanel)designForm.DesignDockManager[DesignDockPanelType.ErrorList]; errorList.Visibility = DockVisibility.AutoHide; // Access the Field List. FieldListDockPanel fieldList = (FieldListDockPanel)designForm.DesignDockManager[DesignDockPanelType.FieldList]; fieldList.ShowNodeToolTips = false; fieldList.ShowParametersNode = false; // Access the Report Explorer. ReportExplorerDockPanel reportExplorer = (ReportExplorerDockPanel)designForm.DesignDockManager[DesignDockPanelType.ReportExplorer]; reportExplorer.CollapseAll(); // Access the Property Grid. PropertyGridDockPanel propertyGrid = (PropertyGridDockPanel)designForm.DesignDockManager[DesignDockPanelType.PropertyGrid]; propertyGrid.ShowCategories = false; propertyGrid.ShowDescription = false; // Show the End-User Designer form. designForm.ShowDialog(); }
public frmDXReportDesign() { InitializeComponent(); this.DesignPanel.SetCommandVisibility(ReportCommand.NewReport, CommandVisibility.None); this.DesignPanel.SetCommandVisibility(ReportCommand.NewReportWizard, CommandVisibility.None); this.DesignPanel.SetCommandVisibility(ReportCommand.VerbReportWizard, CommandVisibility.None); // Access the Group and Sort panel. GroupAndSortDockPanel groupSort = (GroupAndSortDockPanel)this.DesignDockManager[DesignDockPanelType.GroupAndSort]; groupSort.Visibility = DockVisibility.AutoHide; // Access the Script Errors panel. ErrorListDockPanel errorList = (ErrorListDockPanel)this.DesignDockManager[DesignDockPanelType.ErrorList]; errorList.Visibility = DockVisibility.AutoHide; // Access the Field List. FieldListDockPanel fieldList = (FieldListDockPanel)this.DesignDockManager[DesignDockPanelType.FieldList]; fieldList.ShowNodeToolTips = false; fieldList.ShowParametersNode = false; // Access the Report Explorer. ReportExplorerDockPanel reportExplorer = (ReportExplorerDockPanel)this.DesignDockManager[DesignDockPanelType.ReportExplorer]; reportExplorer.CollapseAll(); // Access the Property Grid. PropertyGridDockPanel propertyGrid = (PropertyGridDockPanel)this.DesignDockManager[DesignDockPanelType.PropertyGrid]; propertyGrid.ShowCategories = false; propertyGrid.ShowDescription = false; }