共用方式為


ReportingService2005.CreateReportHistorySnapshot 方法

Generates a report history snapshot of a specified report.

命名空間:  ReportService2005
組件:  ReportService2005 (在 ReportService2005.dll 中)

語法

'宣告
Public Function CreateReportHistorySnapshot ( _
    Report As String, _
    <OutAttribute> ByRef Warnings As Warning() _
) As String
'用途
Dim instance As ReportingService2005 
Dim Report As String 
Dim Warnings As Warning()
Dim returnValue As String 

returnValue = instance.CreateReportHistorySnapshot(Report, _
    Warnings)
public string CreateReportHistorySnapshot(
    string Report,
    out Warning[] Warnings
)
public:
String^ CreateReportHistorySnapshot(
    String^ Report, 
    [OutAttribute] array<Warning^>^% Warnings
)
member CreateReportHistorySnapshot : 
        Report:string * 
        Warnings:Warning[] byref -> string
public function CreateReportHistorySnapshot(
    Report : String, 
    Warnings : Warning[]
) : String

參數

  • Report
    型別:System.String
    The fully qualified URL of the report.

傳回值

型別:System.String
A String that represents the date and time stamp of the snapshot. This string is used as a unique identifier for the historical snapshot.

備註

The table below shows header and permissions information on this operation.

SOAP Headers

(In) BatchHeaderValue

(Out) ServerInfoHeaderValue

Required Permissions

CreateSnapshot AND Execute

For the snapshot to be generated successfully, report history must be enabled for the report. To enable report history for a report, use the SetReportHistoryOptions method. For more information about report history, see 管理報表記錄.

If the report contains subreports, query result sets from the subreports are persisted in the report history snapshot. Report parameters that are passed to the report at the time the report is executed are also persisted.

Snapshots are created by the CreateReportHistorySnapshot method with default report parameters only. If you need to create report history snapshots with different parameter profiles, then use linked reports with CreateReportHistorySnapshot.

The length of the Report parameter cannot exceed 260 characters; otherwise, a SOAP exception is thrown with the error code rsItemLengthExceeded.

The Report parameter cannot be null or empty or contain the following reserved characters: : ? ; @ & = + $ , \ * > < | . ". You can use the forward slash character (/) to separate items in the full path name of the folder, but you cannot use it at the end of the folder name.

請參閱

參考

ReportingService2005 類別

ReportService2005 命名空間