Component Reference

Report components common properties

Sumary

Properties for sections and also for components inside sections

Name Internal Name Type Description
Width Width Twips Width of the component, for sections or component
Height Height Twips Height of the component, for sections and components this size can be modified while the report is executing depending of other properties (autocontract, wordwrap)
Print Condition PrintCondition Expression This expression will be evaluated before printing the section or component, if evaluated to true or empty the component will print else the component will not print
Before Print DoBeforePrint Expression This expression will be evaulated before printing the component but after PrintCondition checked. You can use this expression to perform modifications in variables or evaluate expressions
After Print DoAfterPrint Expression This expression will be evaulated after printing the component You can use this expression to perform modifications in variables or evaluate expressions

Developer info

Internal component name TRpCommonComponent
Parent class TComponent
Unit name rpprintitem.pas

Events

OnBeforePrint:TNotifyEvent

You can assign this event to any component so it will be activated before printing.

Properties for components inside sections

Name Internal Name Type Description
Left PosX Twips Horizontal position for the component, this is relative for the parent section position in the page, the left position can be modified at run time because other properties like Align
Top PosY Twips Vertical position for the component, this is relative for the parent section position in the page, the left position can be modified at run time because other properties like Align
Align Align TRpPosAlign

The alignment is used to move the component down or right when the section resizes while the report is processing

Name Description
None No align, default
Right The component will be placed at the right of the section
Bottom The component will be placed at the bottom of the section
Right/B ottom The component will be placed at the right and the bottom of the section

* Twips are internally stored as an integer representing 1440 points per inchess, when you are in the designer they are converted to your selected unit in preferences, cms or inches.

* Expressions are internally stored as widestrings

Developer info

Internal component name TRpCommonPosComponent
Parent class TRpCommonComponent
Unit name rpprintitem.pas