Share via


CrystalReportViewer.SearchForText Method

Note   This member is now obsolete.

Obsolete. Use SearchAndHighlightText instead.

Namespace CrystalDecisions.Web Assembly CrystalDecisions.Web (CrystalDecisions.Web.dll)

Syntax

'Declaration
Public Overrideable Function SearchForText ( _
    ByVal strTextToSearch As String, _  
    ByVal direction As CrystalDecisions.Shared.SearchDirection _    
) As Boolean
public virtual bool SearchForText (
    string strTextToSearch,
    CrystalDecisions.Shared.SearchDirection direction
)

Parameters

  • strTextToSearch
    Represents the string to search for.
  • direction
    Represents the search direction.

Return Value

Returns True if the text was found, or False if the text was not found.

Remarks

This method is obsolete. Use SearchAndHighlightText instead.

If the text is found, then the CrystalReportViewer control will move to the position of the text.

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports for Visual Studio .NET 2002

See Also

Reference

CrystalReportViewer Class
CrystalReportViewer Members
CrystalDecisions.Web Namespace