ITabView.EmulateHyperlinkClick

Syntax

EmulateHyperlinkClick(Row: Integer; Column: Integer);

Parameters

Row. The row containing hyperlink. Admissible parameter value lies within the [0; RowsCount) range.

Column. The column containing hyperlink. Admissible parameter value lies within the [0; ColumnsCount) range.

Description

The EmulateHyperlinkClick method emulates the click on the hyperlink in the specified cell.

Comments

On executing the method the OnHyperlinkClick event is generated for the component, which table is worked. Description of the event for various components is given in the following subsections:

Example

Sub Macro;

Var

Rep: IPrxReport;

Tab: ITabSheet;

View: ITabView;

i,j: Integer;

Begin

Rep:=PrxReport.ActiveReport;

Tab:=Rep.ActiveSheet.Table;

View:=Tab.View;

i:=Tab.Cell(0,0).Value As integer;

j:=Tab.Cell(0,1).Value As integer;

View.EmulateHyperlinkClick(i,j);

End Sub Macro;

This example is a macro for a regular report. After the macro has been executed, a click on the hyperlink in the cell with coordinates "i" and "j" will be emulated. These coordinates are entered in the "A0" and "B0" cells correspondingly.

See also:

ITabView