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

WebDocumentViewerRemoteSourceSettings.AuthToken Property

Specifies an access token used to obtain documents from the Report and Dashboard Server.

Namespace: DevExpress.XtraReports.Web.WebDocumentViewer

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

NuGet Package: DevExpress.Web.Reporting

#Declaration

[DefaultValue("")]
public string AuthToken { get; set; }

#Property Value

Type Default Description
String String.Empty

A String value that specifies an access token.

#Property Paths

You can access this nested property as listed below:

Library Object Type Path to AuthToken
.NET Reporting Tools ASPxWebDocumentViewer
.SettingsRemoteSource .AuthToken
ASP.NET MVC Extensions WebDocumentViewerSettings
.SettingsRemoteSource .AuthToken

#Remarks

The ASPxWebDocumentViewer.SettingsRemoteSource property allows you to configure the Web Document Viewer to display documents that are created remotely with the DevExpress Report and Dashboard Server.

This property provides access to the following properties:

  • ServerUri - specifies your Report and Dashboard Server URI.
  • AuthToken - specifies the Bearer token used to access documents on the Server.
@model MyApplication.Models.DocumentViewerModel

@Html.DevExpress().WebDocumentViewer(settings => {
    settings.Name = "WebDocumentViewer";
    settings.SettingsRemoteSource.ServerUri = Model.ServerUri;
    settings.SettingsRemoteSource.AuthToken = Model.AuthToken;
}).Bind(Model.ReportUrl).GetHtml()

See Display Documents from the Report and Dashboard Server for a step-by-step example.

See Also