3.2.4.2.33.3 GetReportJob (Opnum 9)
The GetReportJob method returns the report job associated with the specified task name from the List of Persisted Report Jobs (section 3.2.1.5).
-
[id(FSRM_DISPID_REPORT_MANAGER | 0x03)] HRESULT GetReportJob( [in] BSTR taskName, [out, retval] IFsrmReportJob** reportJob );
taskName: Contains the task name for which the server will return the associated report job object. The maximum length of this string MUST be 230 characters.
reportJob: Pointer to an IFsrmReportJob interface pointer (section 3.2.4.2.34) that upon completion contains a pointer to the report job object for the task name specified. The caller MUST release the report job when the caller is done with it.
Return Values: The method MUST return zero on success, or a nonzero error code on failure.
-
Return value/code
Description
0x80045301
FSRM_E_NOT_FOUND
The specified report job could not be found.
0x80070057
E_INVALIDARG
This code is returned for the following reasons:
The taskName parameter is NULL.
The reportJob parameter is NULL.
Upon receiving this message, the server MUST validate parameters:
Verify that taskName is not NULL.
Verify that reportJob is not NULL.
If any validation fails, the server MUST terminate processing and return a nonzero error code.
Upon successful validation of parameters, the server MUST perform the following actions or return a nonzero error code.
Create a new Non-Persisted Report Job Instance (section 3.2.1.5.1.2).
Populate the configuration and state data of the Non-Persisted Report Job Instance from the Persisted Report Job (section 3.2.1.5.1.1) in the List of Persisted Report Jobs with the specified task name.
Set reportJob to the IFsrmReportJob interface pointer of the newly created Non-Persisted Report Job Instance.
If a report job does not exist that is associated with the specified task name, the server MUST return FSRM_E_NOT_FOUND.