How To…Hide the Preview Toolbar Buttons


“How do I control the toolbar buttons of the preview window in ReportBuilder?”


Use the OnPreviewFormCreate event to access the preview button pass-thru properties and control them any way you need.  You will need to type cast the TppReport.PreviewForm property to a TppPrintPreview object to access the button properties.


Sample Delphi code: