Compartir a través de


ReportExecutionService.LoadReportDefinition2 Método

Creates a report execution from a report definition supplied by the client.

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

Sintaxis

'Declaración
Public Function LoadReportDefinition2 ( _
    Definition As Byte(), _
    <OutAttribute> ByRef warnings As Warning() _
) As ExecutionInfo2
'Uso
Dim instance As ReportExecutionService 
Dim Definition As Byte()
Dim warnings As Warning()
Dim returnValue As ExecutionInfo2 

returnValue = instance.LoadReportDefinition2(Definition, _
    warnings)
public ExecutionInfo2 LoadReportDefinition2(
    byte[] Definition,
    out Warning[] warnings
)
public:
ExecutionInfo2^ LoadReportDefinition2(
    array<unsigned char>^ Definition, 
    [OutAttribute] array<Warning^>^% warnings
)
member LoadReportDefinition2 : 
        Definition:byte[] * 
        warnings:Warning[] byref -> ExecutionInfo2
public function LoadReportDefinition2(
    Definition : byte[], 
    warnings : Warning[]
) : ExecutionInfo2

Parámetros

  • Definition
    Tipo: array<System.Byte[]
    A byte stream containing the Report Definition Language (RDL) for the report.

Valor devuelto

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

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

ReadProperties on all subreports AND ExecuteReportDefinition (System)

SharePoint Mode Required Permissions

ViewListItems on all subreports AND UseRemoteAPIs

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

The returned report execution will need to be processed before it is rendered. A new execution is created and the ExecutionInfo2 is returned with a new ExecutionID value.

Reports instantiated with the LoadReportDefinition2 method are temporary. They are not represented in the report server namespace, and are discarded when the server session expires.

Reports instantiated with the LoadReportDefinition2 method are not securable, and may not be shared with other users; the person who created the execution with LoadReportDefinition2 is the only user who may access them.

Subreports and data source references with relative paths are not supported using this method. However, absolute paths to catalog items can be used.

Vea también

Referencia

ReportExecutionService Clase

Espacio de nombres ReportExecution2005