CheckSecurityRole

Indicates whether the connected user is assigned to the security role that enables users to save reports of a given report type. If the user is not assigned to this role, a non-zero error number is thrown as an HRESULT; if the user is assigned to this role, zero is thrown as an HRESULT.

Tip:

In Visual Basic, check for the return value with Err.Number.

Syntax

<HsvReports>.CheckSecurityRole nReportType

Argument

Description

nReportType

Integer (ByVal). Identifies the report type. Pass one of the constants listed in Document Type Constants that represent report types.