Gets or sets the VBScript that is executed when a new page is created.
Namespace:
C1.C1ReportAssembly: C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
C# |
---|
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)] [DefaultValueAttribute(null)] public string OnPage { get; set; } |
Visual Basic |
---|
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> _ <DefaultValueAttribute(Nothing)> _ Public Property OnPage As String Get Set |
Remarks
The control also fires the StartPage event at this time.
The difference between the regular event and the VBScript property is that the handler for the regular event belongs to the application, and should thus be used to support tasks that are independent of the report. For example, to update a label showing how many pages have been rendered so far.
The VBScript handler in the property belongs to the report, and will be executed regardless of the application. For example, a report might contain a VBScript handler that updates a variable at every page break.