Skip to main content

IWebDocumentViewerAuthorizationService.CanReadReport(String) Method

Specifies whether a report can be read from the server.

Namespace: DevExpress.XtraReports.Web.WebDocumentViewer

Assembly: DevExpress.XtraReports.v24.2.Web.dll

NuGet Package: DevExpress.Web.Reporting.Common

Declaration

bool CanReadReport(
    string reportId
)

Parameters

Name Type Description
reportId String

A String value, identifying the report.

Returns

Type Description
Boolean

true, if the user is permitted to read the report; otherwise, false.

Remarks

Verifies whether the user can perform an operation with the report. The method is called when the Document Viewer requests report parameters, their lookup values, initiates document creation or a drill-through operation. You can determine that the initiator of the operation is the same user who opened the report.

See Also