ITabView.EmulateHyperlinkClick

Syntax

EmulateHyperlinkClick(Row: Integer; Column: Integer);

Parameters

Row. The row containing hyperlink. The available value of the parameter is in the range [0, RowsCount).

Column. The column containing hyperlink. The available value of the parameter is in the range [0, ColumnsCount).

Description

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

Comments

Calling the EmulateHyperlinkClick method results in execution of the operation, for which the hyperlink is set up. It does not support calling the JavaScript function, for which the hyperlink can be set up, if hyperlink click is emulated from Fore code.

If work is executed on the form, the OnHyperlinkClick event is generated for the visual component that displays the table. Description of the event for various components:

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(00).Value As integer;
    j := Tab.Cell(01).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