ReportExecutionService.LoadReport2(String, String) 方法

定義

將報告伺服器的報告載入新的執行。

public:
 ReportExecution2005::ExecutionInfo2 ^ LoadReport2(System::String ^ Report, System::String ^ HistoryID);
public ReportExecution2005.ExecutionInfo2 LoadReport2(string Report, string HistoryID);
member this.LoadReport2 : string * string -> ReportExecution2005.ExecutionInfo2
Public Function LoadReport2 (Report As String, HistoryID As String) As ExecutionInfo2

參數

Report
String

報告的全名。

HistoryID
String

快照的歷史ID。

傳回

一個 ExecutionInfo2 包含載入報告資訊的物件。

備註

下表顯示此操作的標頭與權限資訊。

SOAP 標頭的使用 (在) TrustedUserHeaderValue

(出局) ExecutionHeaderValue

(出局) ServerInfoHeaderValue
原生模式所需權限 主報告中: ReadPropertiesExecuteAndView

在所有子報告中: ReadProperties
SharePoint 模式 必要權限 關於主報告及所有子報告: <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems>

此方法應在呼叫 Render2 報告前先呼叫。

根據報告的執行屬性,回傳 ExecutionInfo2 的可能是可渲染的快照,或是需要處理的報告。 若指定為 a HistoryID ,報告已處理完畢,可立即交付。

回傳 ExecutionInfo2 的物件將包含一個新的 ExecutionID

適用於