Search the Wiki

Viewing 253 to 255 of 408 items

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…

0

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…

0

How To…Launch the Report Wizard in Code

Question “How can I launch the Report wizard directly in code?” Solution a. Simplest solution is to use the Designer uses ppWizard; begin // note: this example works with RB 10 and later myDesigner.Form.LayoutManager.DocumentController.New(ppDefaultReportWizard); end; b. It is also possible to launch the report wizard without the Designer Start by manually creating a TppReportWizard object and implementing the  Full Article…

0