次の方法で共有


LoadReport メソッド

レポート サーバーから新しい実行にレポートを読み込みます。

名前空間:  ReportExecution2005
アセンブリ:  ReportExecution2005 (ReportExecution2005.dll)

構文

'宣言
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/LoadReport", 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("TrustedUserHeaderValue")> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("ExecutionHeaderValue", Direction := SoapHeaderDirection.Out)> _
Public Function LoadReport ( _
    Report As String, _
    HistoryID As String _
) As ExecutionInfo
'使用
Dim instance As ReportExecutionService
Dim Report As String
Dim HistoryID As String
Dim returnValue As ExecutionInfo

returnValue = instance.LoadReport(Report, _
    HistoryID)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/LoadReport", 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("TrustedUserHeaderValue")]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapHeaderAttribute("ExecutionHeaderValue", Direction = SoapHeaderDirection.Out)]
public ExecutionInfo LoadReport(
    string Report,
    string HistoryID
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/LoadReport", 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"TrustedUserHeaderValue")]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapHeaderAttribute(L"ExecutionHeaderValue", Direction = SoapHeaderDirection::Out)]
public:
ExecutionInfo^ LoadReport(
    String^ Report, 
    String^ HistoryID
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/LoadReport", 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("TrustedUserHeaderValue")>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapHeaderAttribute("ExecutionHeaderValue", Direction = SoapHeaderDirection.Out)>]
member LoadReport : 
        Report:string * 
        HistoryID:string -> ExecutionInfo 
public function LoadReport(
    Report : String, 
    HistoryID : String
) : ExecutionInfo

パラメーター

戻り値

型: ReportExecution2005. . :: . .ExecutionInfo
読み込まれるレポートに関する情報を含む ExecutionInfo オブジェクトです。

説明

このメソッドは、レポートに Render メソッドを呼び出す前に呼び出す必要があります。

返される ExecutionInfo は、レポートの実行プロパティに応じて、すぐに表示できるスナップショットか、処理を必要とするレポートのいずれかになります。HistoryID を指定する場合、レポートは既に処理済みで、すぐに表示できます。

返される ExecutionInfo オブジェクトには、新しい ExecutionID が含まれます。

使用例

コード例については、「Render メソッド」を参照してください。