Share via


ReportExecutionService.LoadReportDefinition Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

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

Syntax

'Declaration
Public Function LoadReportDefinition ( _
    Definition As Byte(), _
     ByRef warnings As Warning() _
) As ExecutionInfo
public ExecutionInfo LoadReportDefinition (
    byte[] Definition,
    out Warning[] warnings
)
public:
ExecutionInfo^ LoadReportDefinition (
    array<unsigned char>^ Definition, 
     array<Warning^>^% warnings
)
public ExecutionInfo LoadReportDefinition (
    byte[] Definition, 
    /** @attribute  */ /** @ref */ Warning[] warnings
)
JScript does not support passing value-type arguments by reference.

Parameters

  • Definition
    A byte stream containing the Report Definition Language (RDL) for the report.
  • warnings
    A collection of Warning objects containing warnings that may have occurred during report publishing.

Return Value

An ExecutionInfo object containing information for the report execution.

Remarks

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

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

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

Reports instantiated with the LoadReportDefinition method are not securable, and may not be shared with other users - the person who created the execution with LoadReportDefinition 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.

Example

Please see Render for an example.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

See Also

Reference

ReportExecutionService Class
ReportExecutionService Members
Microsoft.WSSUX.ReportingServicesWebService.RSExecutionService2005 Namespace