ReportExecutionService.LoadReportDefinition2(Byte[], Warning[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a report execution from a report definition supplied by the client.
public:
ReportExecution2005::ExecutionInfo2 ^ LoadReportDefinition2(cli::array <System::Byte> ^ Definition, [Runtime::InteropServices::Out] cli::array <ReportExecution2005::Warning ^> ^ % warnings);
public ReportExecution2005.ExecutionInfo2 LoadReportDefinition2 (byte[] Definition, out ReportExecution2005.Warning[] warnings);
member this.LoadReportDefinition2 : byte[] * Warning[] -> ReportExecution2005.ExecutionInfo2
Public Function LoadReportDefinition2 (Definition As Byte(), ByRef warnings As Warning()) As ExecutionInfo2
Parameters
- Definition
- Byte[]
A byte stream containing the Report Definition Language (RDL) for the report.
- warnings
- Warning[]
A collection of Warning objects containing warnings that may have occurred during report publishing.
Returns
An ExecutionInfo2 object containing information for the report execution.
Remarks
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 | <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems> on all subreports AND <xref:Microsoft.SharePoint.SPBasePermissions.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.