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.CanReadDocument(String) Method

Specifies whether document retrieval from the server is permitted.

Namespace: DevExpress.XtraReports.Web.WebDocumentViewer

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

NuGet Package: DevExpress.Web.Reporting.Common

#Declaration

bool CanReadDocument(
    string documentId
)

#Parameters

Name Type Description
documentId String

A String value that identifies the report document.

#Returns

Type Description
Boolean

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

#Remarks

Allows you to prevent unauthorized operations with a document. The list of operations includes all operations in which the document is read:

  • Text search in the document
  • Creating an image of the document page that involves page rendering
  • Page brick mapping
  • Synchronous export and print
  • Start of the asynchronous export or print operation
  • Document generation status retrieval
  • Operation that stops or cancels document generation
  • Operation that read the document to retrieve additional information, such as editable field content, document map, sort order, drill-down state or export options
  • Custom document operation that the client initiates (the client calls the PerformCustomDocumentOperation method)
See Also