IReportBox.FindReplaceEx

Syntax

FindReplaceEx(CellSearch: ITabCellSearch; Replace: Boolean);

Parameters

CellSearch. It determines search parameters displayed in the dialog box that opens.

Replace. It determines which tab should be active when the dialog box opens. If it is set to True, the Replace tab is active when the dialog box opens.

Description

The FindReplaceEx method opens the find and replace window in the regular report.

Example

Executing the example requires a form with the components: Button, UiReport and ReportBox with the ReportBox1 identifier. Specify object for UiReport. Specify UiReport data source for ReportBox1. Add links to the Metabase, Report, Tab, Forms and ExtCtrls system assemblies.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
     Var Tab : ITabSheet;
         SR : ITabCellSearch;
     Begin
         Tab := (UiReport1.Report.ActiveSheet As IPrxTable).TabSheet;
         SR := Tab.CreateCellSearch;
         SR.CaseSensitive := False;
         SR.Text:= "1";
         ReportBox1.FindReplaceEx(SR, False);
End Sub Button1OnClick;

When you have executed the example and pressed the button a search dialog box is activated in the regular report. On search case is considered. Text which is searched for in "1" cells.

See also:

IReportBox