ReportExecutionService.LoadReport(String, String) 方法

定義

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

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

參數

Report
String

報告的全名。

HistoryID
String

快照的歷史ID。

傳回

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

範例

如需範例程式碼,請參閱該方法。Render

備註

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

SOAP 標頭的使用 (在) TrustedUserHeaderValue

(出局) ExecutionHeaderValue

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

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

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

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

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

預設情況下,報告編輯會話設定為上次使用起計 7200 秒(2 小時),使使用者能長時間在快取中保留大量資料。 在某些使用模式中,這可能導致資料庫和報告伺服器負擔增加 RSTempDB 。 在這種情況下,你應該考慮使用 LoadReport

適用於