ActiveReports.Document Assembly > DataDynamics.ActiveReports.Document Namespace > Document Class : Find Method |
Overload | Description |
---|---|
Find(String,Int32) | Searches the text in the document for a specified string starting at a specified location. |
Find(String,FindOptions,Int32,Single) | Searches the text in the document for a specified string starting at a specified location and with specific options applied to the search. |
private void btnFind_Click(object sender, System.EventArgs e) { int i = 0; if (arv.Document.Find("Coyote", ref i) == true) { MessageBox.Show ("This document contains the word Coyote."); arv.Document.ClearFindTextSelection(); } }
Private Sub btnFind_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFind.Click If arv.Document.Find("Coyote", 0) Then MsgBox("This document contains the word Coyote.") arv.Document.ClearFindTextSelection() End If End Sub
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2