On Before Print
From Morfik Wiki
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;
| BX Code |
|---|
Published Message Sub TextLabel1BeforePrint(Sender As TWebControl, Canvas As TWebCanvas, ByRef Print As Boolean) If SQLFilter <> "" Then TextLabel1.Caption = "Values sorted." End Sub |
| CX Code |
|---|
published message void TextLabel1BeforePrint(TWebControl Sender, TWebCanvas Canvas, ref Boolean Print) { if (SQLFilter != "") TextLabel1.Caption = "Values sorted."; } |
- Applies to
Button, Calendar, Checkbox, Combobox, Container, DateTimeEdit, DropDown, Flash, Image, Listbox, OptionsButton, PaintBox, PopupWindow, ProgressBar, Rectangle, RSSButton, Subform, TabControl, TabSheet, TextEdit, TextLabel, Band

