How To…Show the Outline in a TppViewer


“How do I display the report outline used with the preview window in a TppViewer object on a form?”


This can be done by manually creating a TppReportOutline object and placing it inside a TPanel on the form. Simply create the outline object, set its Parent to the TPanel and assign its Viewer property to the TppViewer component also on the form.

The following example shows how this should be done.


Sample Delphi code: