ReportExecutionService.LoadReport2 Method (String, String)
Applies To: SQL Server 2016 Preview
Loads a report from the report server into a new execution.
Namespace: ReportExecution2005
Assembly: ReportExecution2005 (in ReportExecution2005.dll)
Syntax
public ExecutionInfo2 LoadReport2(
string Report,
string HistoryID
)
public:
ExecutionInfo2^ LoadReport2(
String^ Report,
String^ HistoryID
)
member LoadReport2 :
Report:string *
HistoryID:string -> ExecutionInfo2
Public Function LoadReport2 (
Report As String,
HistoryID As String
) As ExecutionInfo2
Parameters
Report
Type: System.StringThe full name of the report.
HistoryID
Type: System.StringThe history ID of the snapshot.
Return Value
Type: ReportExecution2005.ExecutionInfo2
An ExecutionInfo2 object containing information for the loaded report.
Remarks
The table below shows header and permissions information on this operation.
SOAP Header Usage |
(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: ViewListItems |
This method should be called prior to calling the M:ReportExecution2005.ReportExecutionService.Render2(System.String,System.String,System.String@,System.String@,System.String@,ReportExecution2005.Warning[]@,System.String[]@) 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.
See Also
ReportExecutionService Class
ReportExecution2005 Namespace
Return to top