Report > Report Assembly Interfaces > IReportBox > IReportBox.FindReplaceEx
FindReplaceEx(CellSearch: ITabCellSearch; Replace: Boolean);
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.
The FindReplaceEx method opens the find and replace window in the regular report.
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;
See also: