Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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