다음을 통해 공유


ReportExecutionService.LoadReport 메서드

Loads a report from the report server into a new execution.

네임스페이스:  ReportExecution2005
어셈블리:  ReportExecution2005(ReportExecution2005.dll)

구문

‘선언
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)
public ExecutionInfo LoadReport(
    string Report,
    string HistoryID
)
public:
ExecutionInfo^ LoadReport(
    String^ Report, 
    String^ HistoryID
)
member LoadReport : 
        Report:string * 
        HistoryID:string -> ExecutionInfo
public function LoadReport(
    Report : String, 
    HistoryID : String
) : ExecutionInfo

매개 변수

  • HistoryID
    유형: System.String
    The history ID of the snapshot.

반환 값

유형: ReportExecution2005.ExecutionInfo
An ExecutionInfo object containing information for the loaded report.

주의

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

SOAP Header Usage

(In) TrustedUserHeaderValue

(Out) ExecutionHeaderValue

(Out) ServerInfoHeaderValue

Native Mode Required Permissions

On the main report: ReadProperties AND ExecuteAndView

On all subreports: ReadProperties

SharePoint Mode Required Permissions

On the main report and all subreports: ViewListItems

This method should be called prior to calling the Render method for a report.

Depending on the execution properties of the report, the returned ExecutionInfo may either be a snapshot ready to be rendered or a report that needs to be processed. If a HistoryID is specified, the report has already been processed and it will be able to be rendered immediately.

The returned ExecutionInfo object will contain a new ExecutionID.

By default, report edit sessions are set to 7200 seconds (2 hours) from last use, making it possible for users to keep a large amount of data in the cache for a prolonged period of time. In some usage patterns, this could lead to a larger load on the RSTempDB database and the report server. In these cases you should consider using LoadReport.

For a code example, please see the Render method.

참고 항목

참조

ReportExecutionService 클래스

ReportExecution2005 네임스페이스