Compartir a través de


ReportExecutionService.LoadReport2 Método

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

Espacio de nombres:  ReportExecution2005
Ensamblado:  ReportExecution2005 (en ReportExecution2005.dll)

Sintaxis

'Declaración
Public Function LoadReport2 ( _
    Report As String, _
    HistoryID As String _
) As ExecutionInfo2
'Uso
Dim instance As ReportExecutionService 
Dim Report As String 
Dim HistoryID As String 
Dim returnValue As ExecutionInfo2 

returnValue = instance.LoadReport2(Report, _
    HistoryID)
public ExecutionInfo2 LoadReport2(
    string Report,
    string HistoryID
)
public:
ExecutionInfo2^ LoadReport2(
    String^ Report, 
    String^ HistoryID
)
member LoadReport2 : 
        Report:string * 
        HistoryID:string -> ExecutionInfo2
public function LoadReport2(
    Report : String, 
    HistoryID : String
) : ExecutionInfo2

Parámetros

Valor devuelto

Tipo: ReportExecution2005.ExecutionInfo2
An ExecutionInfo2 object containing information for the loaded report.

Comentarios

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 Render2(String, String, String, String, String, Warning, String) method for a report.

Depending on the execution properties of the report, the returned ExecutionInfo2 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 ExecutionInfo2 object will contain a new ExecutionID.

Vea también

Referencia

ReportExecutionService Clase

Espacio de nombres ReportExecution2005