FindReplaceEx(CellSearch: ITabCellSearch; Replace: Boolean);
FindReplaceEx(CellSearch: Prognoz.Platform.Interop.Tab.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 dialog box 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;
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.
Executing the example requires a form with the components: Button, UiReportNet and ReportBoxNet with the ReportBoxNet1 identifier. Specify object for UiReportNet. Specify UiReportNet data source for ReportBoxNet1. Add links to the Metabase, Report, Tab, Forms and ExtCtrls system assemblies.
Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var Tab : ITabSheet;
SR : ITabCellSearch;
Begin
Tab := (uiReportNet1.ReportUi.Report.ActiveSheet As IPrxTable).TabSheet;
SR := Tab.CreateCellSearch();
SR.CaseSensitive := False;
SR.Text:= "1";
reportBoxNet1.CtrlBox.FindReplaceEx(SR, False);
End Sub;
See also: