FlexReport for .NET | ComponentOne
C1.Win.FlexReport.4.8 Assembly / C1.Win.FlexReport Namespace / Section Class / OnFormat Property

In This Topic
    OnFormat Property (Section)
    In This Topic
    Gets or sets a string containing VBScript code to be executed before the Section is formatted.
    Syntax
    'Declaration
     
    Public Property OnFormat As String
    public string OnFormat {get; set;}
    Remarks

    This property contains VBScript instructions to be executed before the fields in the section are calculated. When this script is executed, the recordset already holds the data that will be displayed in the section, but the field values have not been updated yet.

    Use this event to assign values to fields before they are calculated, so the new values will be taken into account when the control calculates the field's size and position when the CanGrow or CanShrink properties are set to true.

    If you want to set field properties based on the field's current value, use the OnPrint property instead.

    See Also