语言

ReportExecutionService.FindString(Int32, Int32, 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

参数

StartPage
Int32

可以从哪一页开始搜索字符串。 搜索从开始StartPage,持续到文档末尾,然后重新开始并结束。EndPage 在快照开头指定 0 开始。

EndPage
Int32

那个停止寻找字符串的页面。 指定0在起始页停止。

FindValue
String

要查找的字符串。

返回

Integer A 包含字符串下一次出现的页码,若找不到字符串则为 0。

注解

下表显示了该操作的头部和权限信息。

SOAP头的使用 (在) TrustedUserHeaderValue

(在) ExecutionHeaderValue

(出局) ServerInfoHeaderValue
本地模式所需权限 None
SharePoint 模式 必要权限 None

如果没有快照,将返回错误。

适用于