ReportExecutionService.LoadReport2(String, String) 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.
Loads a report from the report server into a new execution.
public:
ReportExecution2005::ExecutionInfo2 ^ LoadReport2(System::String ^ Report, System::String ^ HistoryID);
public ReportExecution2005.ExecutionInfo2 LoadReport2 (string Report, string HistoryID);
member this.LoadReport2 : string * string -> ReportExecution2005.ExecutionInfo2
Public Function LoadReport2 (Report As String, HistoryID As String) As ExecutionInfo2
Parameters
- Report
- String
The full name of the report.
- HistoryID
- String
The history ID of the snapshot.
Returns
An ExecutionInfo2 object containing information for the loaded report.
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 | On the main report: ReadProperties AND ExecuteAndView On all subreports: ReadProperties |
SharePoint Mode Required Permissions | On the main report and all subreports: <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems> |
This method should be called prior to calling the Render2 method for a report.
Depending on the execution properties of the report, the returned ExecutionInfo2 may either be a snapshot ready to be rendered or a report that needs to be processed. If a HistoryID
is specified, the report has already been processed and it will be able to be rendered immediately.
The returned ExecutionInfo2 object will contain a new ExecutionID.