3.2.4.2.7.1 ReportTypes (get) (Opnum 12)

The ReportTypes (get) method returns the report types property of the action. The reportTypes property is an array of FsrmReportType (section 2.2.1.2.10) values that determine which reports the action will generate if it is run.

 [propget, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_REPORT | 0x01))] HRESULT ReportTypes(
   [out, retval] SAFEARRAY (VARIANT)* reportTypes
 );

reportTypes: Pointer to a SAFEARRAY variable that upon completion contains the report types for the action.

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

Return value/code

Description

0x80070057

E_INVALIDARG

The reportTypes parameter is NULL.

Upon receiving this message, the server MUST validate parameters:

  • Verify that reportTypes is not NULL.

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

The server MUST populate reportTypes with its list of report types for the action.