CheckReportSecurityClass

Indicates whether the connected user has either Read or All access rights to a report’s security class. If the user does not have access rights, a non-zero error number is thrown as an HRESULT. If the user has access rights, 0 is thrown as an HRESULT.

Tip:

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

To check whether the user has a specific level of access rights, use CheckReportSecurityClass2.

Syntax

<HsvReports>.CheckReportSecurityClass bstrName, nReportFileType, nReportType

Argument

Description

bstrName

String (ByVal). The name of the report.

nReportFileType

Integer (ByVal). Identifies the file type of the report. Pass one of the constants listed in Document File Type Constants.

nReportType

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