3.2.4.2.7.2 ReportTypes (put) (Opnum 13)

The ReportTypes (put) method sets 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 report types the action will generate if it is run.

 [propput, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_REPORT | 0x01))] HRESULT ReportTypes(
   [in] SAFEARRAY (VARIANT) reportTypes
 );

reportTypes: Pointer to a SAFEARRAY that contains a list of FsrmReportType values.

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 not a valid value. If any one of the reportTypes is FsrmReportType_Unknown, the parameter MUST be considered an invalid value.

Upon receiving this message, the server MUST validate parameters:

  • Verify that reportTypes contains valid FsrmReportType values. If any one of the reportTypes are FsrmReportType_Unknown, the parameter MUST be considered an invalid value.

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

The server MUST use reportTypes as the set of reports to generate for the action if it is run.