On Before Print

This event is fired by a control on the server before control’s HTML (or in the case of Report generation, PDF) content is generated.

Where

Server

Sample code

FX Code

Procedure Form1.TextLabel1BeforePrint(Sender: TWebControl; Canvas: TWebCanvas; Var Print: Boolean);
Begin
    If SQLFilter <> '' Then
        TextLabel1.Caption := 'Values sorted.';
End;
Applies to

Button, Calendar, Checkbox, Combobox, Container, DateTimeEdit, DropDown, Flash, Image, Listbox, OptionsButton, PopupWindow, ProgressBar, Rectangle, Subform, TabControl, TabSheet, TextEdit, TextLabel, Band

Related Topics

Events