Question “How do I automatically navigate/scroll once the preview is loaded?” Solution With the addition of the scrollable previewer for RB 14, it is increasingly necessary to automatically navigate or scroll to a pre-defined position inside a report. This can easily be done by using the TppViewer.OnPrintStateChange event and the TppViewer.Busy property. 1. Access the Full Article…
Search the Wiki
How To…Add Preview Hot Key Support
Question “How do I add hot key support to the preview window? For instance pressing F8 prints the report?” Solution Create a preview plugin that overrides the KeyDown routine. From there you can capture any key presses and perform any task you need. Download: HotKeyPrintPlugin.zip Sample Delphi code: type TmyHotKeyPrint = class(TppPreview) public procedure KeyDown(var Full Article…
How To…Add a Button to the Preview
Question “How do I add a custom button to the preview toolbar?” Solution Create a Preview Plugin that overrides the CreateToolbarItems routine. Use the Toolbar.AddButton routine to add a new button to the toolbar before the default buttons are created. Take a look at the TppPreview.CreateToolbarItems routine located in the ppPreview.pas file for examples of Full Article…