3.2.4.2.34.12 LastError (get) (Opnum 22)

The LastError (get) method retrieves the last error, if any, from when the report job was previously generated and returns S_OK upon successful completion. If no error occurred on the previous report job generation, the returned string will be empty.

 [propget, id(FSRM_PROPERTY (FSRM_DISPID_REPORT_JOB | 0x07))] HRESULT LastError(
   [out, retval] BSTR* lastError
 );

lastError: Pointer to a variable that upon completion contains the last error, if any, from when the report job was previously generated.

Return Values: The method MUST return zero on success, or a nonzero error code on failure.

Return value/code

Description

0x80070057

E_INVALIDARG

The lastError parameter is NULL.

Upon receiving this message, the server MUST validate parameters:

  • Verify that lastError is not NULL.

If any validation fails, the server MUST terminate processing and return a nonzero error code.

The server MUST set lastError to the last error of the previous report job generation or an empty string if no error occurred on the previous report job generation.