Search the Wiki

Viewing 169 to 171 of 408 items

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…

0

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…

0

Hide Print Button on Print Preview

Question “How can I hide the Print button of the Report Preview?” Solution Here are two options: 1. Implement Report.OnPreviewFormCreate event: uses ppPrvDlg; procedure TForm1.ppReport1PreviewFormCreate(Sender: TObject); begin TppPrintPreview(ppReport1.PreviewForm).PrintButton.Visible := False; end; 2. Implement a custom TppPreviewPlugin: This solution is best for the case in which you need to hide the Print button for all (or  Full Article…

0