ReportViewer.Find Method (String, Int32)

 

Searches the report for the specified text string.

Namespace:   Microsoft.Reporting.WinForms
Assembly:  Microsoft.ReportViewer.WinForms (in Microsoft.ReportViewer.WinForms.dll)

public int Find(
	string searchString,
	int startPage
)

Parameters

searchString
Type: System.String

The search string.

startPage
Type: System.Int32

The page number on which to start searching.

Return Value

Type: System.Int32

An integer value containing the page number on which the search string was found, or 0 if the search string was not found.

Return to top
Show: