Sub OnAfterInsertRange(Sender: Object; Args: IReportRangeInsertEventArgs);
Begin
//set of operators;
End Sub OnAfterInsertRange;
Sender. A parameter that returns the component that generated the event.
Args. A parameter that enables the user to determine event parameters.
The OnAfterInsertRange event occurs after adding ranges/rows/columns.
Before adding ranges/rows/columns the ReportBox.OnBeforeInsertRange event occurs.
Executing the example requires a form that contains the ReportBox component with the ReportBox1 identifier and the UiReport component with the UiReport1 identifier. Specify the UiReport1 component as a data source for the ReportBox1 component. In the OperationMode property of the UiReport1 specify Edit.
Sub ReportBox1OnAfterInsertRange(Sender: Object; Args: IReportRangeInsertEventArgs);
Begin
Debug.WriteLine("Range is added: " + Args.Range.Address +
" by means of: " + Args.ShiftDirection.ToString + " to sheet: " + Args.Sheet.Name);
End Sub ReportBox1OnAfterInsertRange;
After executing the example on each adding range/rows/columns to table, the console window displays a message with the information:
Execution result.
Added range address.
Type of ranges/rows/columns adding.
A sheet, to which ranges/rows/columns are added.
See also:
Related work items
Requirement