Question “How can I show/embed the Designer in a Panel?” Solution The following example uses the Designer.ShowInPanel method to display the display the designer within a panel and optionally move the menu bar to the parent form. Download: ShowDesignerInPanel.zip Sample Delphi code: procedure TForm1.btnShowDesignerPanelClick(Sender: TObject); begin ppDesigner1.ShowInPanel(Panel1); end; procedure TForm1.btnShowDesignerInPanelClick(Sender: TObject); begin // move the Full Article…
Search the Wiki
How To…Select a Default Folder in the ReportExplorer
Question “How can I select a default report explorer folder for my end-users to save their reports?” Solution The following example uses the Report.Template.OnNew and OnLoadEnd events to set the default folder for the user to save reports. Download: ReportExplorerSelectDefaultFolder.zip Sample Delphi code: procedure TmyEndUserSolution.ehReport_New(Sender: TObject); begin ppReportExplorer1.CurrentFolderId := GetFolderId('Customers'); end; procedure TmyEndUserSolution.ehReport_LoadEnd(Sender: TObject); begin Full Article…
How To…Refresh Data Tree
Question “How can I refresh the Designer Data Tree via code?” Solution The following example shows how to refresh the Data Tree window. Download: RefreshDataTreeInCode.zip Sample Delphi code: uses ppEndUsr, ppToolWnTBX, ppDesignLayoutManager, ppDesignToolManagerTBX; procedure TForm1.ppDesigner1Show(Sender: TObject); var lLayoutManager: TppDesignLayoutManager; lToolManager: TppDesignToolManager; lDataTree: TppDataTreeWindow; begin lLayoutManager := ppDesigner1.Form.LayoutManager; // get the ToolManager lToolManager := lLayoutManager.ToolManager; // Full Article…