Export (0) Print
Expand All

ReportExecutionService.LoadReportDefinition2 Method

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

Namespace:  ReportExecution2005
Assembly:  ReportExecution2005 (in ReportExecution2005.dll)

[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapHeaderAttribute("ExecutionHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/LoadReportDefinition2", RequestNamespace = "http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
	ResponseNamespace = "http://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
	Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public ExecutionInfo2 LoadReportDefinition2(
	byte[] Definition,
	out Warning[] warnings
)

Parameters

Definition
Type: System.Byte[]
A byte stream containing the Report Definition Language (RDL) for the report.
warnings
Type: ReportExecution2005.Warning[]%
A collection of Warning objects containing warnings that may have occurred during report publishing.

Return Value

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

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft