共用方式為


ReportExecutionService.FindString 方法

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

命名空間:  ReportExecution2005
組件:  ReportExecution2005 (在 ReportExecution2005.dll 中)

語法

'宣告
Public Function FindString ( _
    StartPage As Integer, _
    EndPage As Integer, _
    FindValue As String _
) As Integer
'用途
Dim instance As ReportExecutionService 
Dim StartPage As Integer 
Dim EndPage As Integer 
Dim FindValue As String 
Dim returnValue As Integer 

returnValue = instance.FindString(StartPage, _
    EndPage, FindValue)
public int FindString(
    int StartPage,
    int EndPage,
    string FindValue
)
public:
int FindString(
    int StartPage, 
    int EndPage, 
    String^ FindValue
)
member FindString : 
        StartPage:int * 
        EndPage:int * 
        FindValue:string -> int
public function FindString(
    StartPage : int, 
    EndPage : int, 
    FindValue : String
) : int

參數

  • StartPage
    型別:System.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
    型別:System.Int32
    The page on which to stop searching for the string. Specify 0 to stop at the start page.

傳回值

型別:System.Int32
An Integer containing the page number with the next occurrence of the string, or 0 if the string is not found.

備註

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.

請參閱

參考

ReportExecutionService 類別

ReportExecution2005 命名空間