ReportExecutionService.LoadReportDefinition(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::ExecutionInfo ^ LoadReportDefinition(cli::array <System::Byte> ^ Definition, [Runtime::InteropServices::Out] cli::array <ReportExecution2005::Warning ^> ^ % warnings);
public ReportExecution2005.ExecutionInfo LoadReportDefinition (byte[] Definition, out ReportExecution2005.Warning[] warnings);
member this.LoadReportDefinition : byte[] * Warning[] -> ReportExecution2005.ExecutionInfo
Public Function LoadReportDefinition (Definition As Byte(), ByRef warnings As Warning()) As ExecutionInfo
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 ExecutionInfo object containing information for the report execution.
Examples
Please see Render for an example.
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 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.