ReportingService2010.CreateReportEditSession 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在報告伺服器資料庫建立新的報表編輯會話。
public:
System::String ^ CreateReportEditSession(System::String ^ Report, System::String ^ Parent, cli::array <System::Byte> ^ Definition, [Runtime::InteropServices::Out] cli::array <ReportService2010::Warning ^> ^ % Warnings);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/CreateReportEditSession", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")]
public string CreateReportEditSession(string Report, string Parent, byte[] Definition, out ReportService2010.Warning[] Warnings);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/CreateReportEditSession", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)>]
[<System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)>]
[<System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")>]
member this.CreateReportEditSession : string * string * byte[] * Warning[] -> string
Public Function CreateReportEditSession (Report As String, Parent As String, Definition As Byte(), ByRef Warnings As Warning()) As String
參數
- Report
- String
編輯工作階段所關聯的報告名稱。
- Parent
- String
通往物品的路徑。 這可以是一個資料夾或 SharePoint 文件庫。
- Definition
- Byte[]
一個位元組陣列,包含與編輯會話相關的報告定義語言(RDL)。
傳回
string A 用來識別編輯會話。
- 屬性
備註
下表顯示此操作的標頭與權限資訊。
| SOAP 標頭的使用 | (在) TrustedUserHeaderValue (出局) ServerInfoHeaderValue |
| 原生模式所需權限 |
ExecuteReportDefinition 而且,視情況而定:
|
| SharePoint 模式 必要權限 | 需要系統屬性 EnableLoadReportDefinition 設定為 true AND,視情況而定:
|
若指定的資料夾或文件函式庫不存在,則會發生錯誤。
如果參數中指定的 Report 報告不存在於指定位置,則 的 Report 值會設定 Global!在 RDL 裡用 ReportName 來編輯。
呼叫DeleteItem刪除報告編輯會話的方法,並將參數EditSessionID傳給方法。DeleteItem
定義不能包含基於表達式的 連接字串。 當它成功時, rsInvalidParameterValue 會以此方法回傳。
預設情況下,報告編輯會話設定為上次使用起計 7200 秒(2 小時),使使用者能長時間在快取中保留大量資料。 在某些使用模式中,這可能導致資料庫和報告伺服器負擔增加 RSTempDB 。 在這種情況下,你應該考慮使用 LoadReport。