다음을 통해 공유


FindString 메서드

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

네임스페이스:  ReportExecution2005
어셈블리:  ReportExecution2005.dll의 ReportExecution2005

구문

‘선언
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/FindString", RequestNamespace := "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",  _
    ResponseNamespace := "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("ExecutionHeaderValue")> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
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)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/FindString", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapHeaderAttribute("ExecutionHeaderValue")]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
public int FindString(
    int StartPage,
    int EndPage,
    string FindValue
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/FindString", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
    ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
    Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapHeaderAttribute(L"ExecutionHeaderValue")]
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
public:
int FindString(
    int StartPage, 
    int EndPage, 
    String^ FindValue
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/FindString", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapHeaderAttribute("ExecutionHeaderValue")>]
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
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.

주의

If no snapshot exists, an error will be returned.