The IsFilterValidForReportType method returns an indication of whether a specified report filter is configurable for the specified report type.

 [id(FSRM_DISPID_REPORT_MANAGER | 0x06)] HRESULT IsFilterValidForReportType(
   [in] FsrmReportType reportType,
   [in] FsrmReportFilter filter,
   [out, retval] VARIANT_BOOL* valid
 );

reportType: Contains the value from the FsrmReportType (section 2.2.1.2.10) enumeration.

filter: Contains the value from the FsrmReportFilter (section 2.2.1.2.16) enumeration.

valid: Pointer to a variable that upon completion contains the Boolean indication of whether the specified filter is configurable for the specified report type.

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

Return value/code

Description

0x80070057

E_INVALIDARG

This code is returned for the following reasons:

  • The reportType parameter is not a valid FsrmReportType 2.2.1.2.10 value.

  • The filter parameter is not a valid FsrmReportFilter (section 2.2.1.2.16) value.

  • The valid parameter is NULL.

Upon receiving this message, the server MUST validate parameters:

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

The server MUST set valid to the value VARIANT_TRUE or VARIANT_FALSE.