Share via


ReportExecutionService.FindString(Int32, Int32, String) Method

Definition

Returns the logical page number of the next occurrence of the specified string.

public:
 int FindString(int StartPage, int EndPage, System::String ^ FindValue);
public int FindString (int StartPage, int EndPage, string FindValue);
member this.FindString : int * int * string -> int
Public Function FindString (StartPage As Integer, EndPage As Integer, FindValue As String) As Integer

Parameters

StartPage
Int32

Page on which to start searching for the string. The search starts on the StartPage and continues to the end of the document before starting over and finishing on the EndPage. Specify 0 to start at the beginning of the snapshot.

EndPage
Int32

The page on which to stop searching for the string. Specify 0 to stop at the start page.

FindValue
String

The string to find.

Returns

An Integer containing the page number with the next occurrence of the string, or 0 if the string is not found.

Remarks

The table below shows header and permissions information on this operation.

SOAP Header Usage (In) TrustedUserHeaderValue

(In) ExecutionHeaderValue

(Out) ServerInfoHeaderValue
Native Mode Required Permissions None
SharePoint Mode Required Permissions None

If no snapshot exists, an error will be returned.

Applies to