Sub UiReport1OnBeforeRefreshEaxGrid(Sender: Object; Args: IUiPrxEaxGridEventArgs);
Begin
//set of operators;
End Sub UiReport1OnBeforeRefreshEaxGrid;
Sub uiReportNet1_OnBeforeRefreshEaxGrid(Sender: System.Object; Args: Prognoz.Platform.Interop.Report.UiPrxEaxGridEventArgs);
Begin
//set of operators;
End Sub;
Sender. A parameter that returns the component that generated the event.
Args. A parameter that enables the user to determine event parameters.
The OnBeforeRefreshEaxGrid event occurs before refreshing analytical data area.
After refreshing analytical data area, the UiReport.OnAfterRefreshEaxGrid event occurs.
Executing the example requires a form that contains the UiReport component with the UiReport1 identifier and a visualizer, which data source is the UiReport1 component. Specify a regular report, which active sheet contains analytical data area, as a data source for the UiReport1 component.
The example is the OnBeforeRefreshEaxGrid event handler for the UiReport1 component.
Sub UiReport1OnBeforeRefreshEaxGrid(Sender: Object; Args: IUiPrxEaxGridCancelEventArgs);
Begin
Debug.WriteLine("Analytical data area is refreshed:");
Debug.WriteLine("with columns: " + Args.EaxGrid.ColumnName(0));
Debug.WriteLine("and rows: " + Args.EaxGrid.RowName(0));
End Sub UiReport1OnBeforeRefreshEaxGrid;
The requirements and result of the Fore.NET example execution match with those in the Fore example. Use Fore.NET analogs instead of Fore components.
Add a link to the Report system assembly.
Imports Prognoz.Platform.Interop.Report;
…
Private Sub uiReportNet1_OnBeforeRefreshEaxGrid(Sender: System.Object; Args: Prognoz.Platform.Interop.Report.UiPrxEaxGridCancelEventArgs);
Begin
System.Diagnostics.Debug.WriteLine("Analytical data area is refreshed:");
System.Diagnostics.Debug.WriteLine("with columns: " + Args.EaxGrid.ColumnName[0]);
System.Diagnostics.Debug.WriteLine("and rows: " + Args.EaxGrid.RowName[0]);
End Sub;
See also:
Related work items
Requirement