Back to Devexpress

WebDocumentViewerRemoteSourceSettings Class

xtrareports-devexpress-dot-xtrareports-dot-web-dot-webdocumentviewer-23b610cc.md

latest3.9 KB
Original Source

WebDocumentViewerRemoteSourceSettings Class

Provides settings for the Web Document Viewer‘s remote document source.

Namespace : DevExpress.XtraReports.Web.WebDocumentViewer

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

NuGet Package : DevExpress.Web.Reporting

Declaration

csharp
public class WebDocumentViewerRemoteSourceSettings :
    PropertiesBase,
    IPropertiesOwner
vb
Public Class WebDocumentViewerRemoteSourceSettings
    Inherits PropertiesBase
    Implements IPropertiesOwner

The following members return WebDocumentViewerRemoteSourceSettings objects:

LibraryRelated API Members
.NET Reporting ToolsASPxWebDocumentViewer.SettingsRemoteSource
ASP.NET MVC ExtensionsWebDocumentViewerSettings.SettingsRemoteSource

Remarks

A WebDocumentViewerRemoteSourceSettings object is returned by the ASPxWebDocumentViewer.SettingsRemoteSource property. This property allows you to configure the Web Document Viewer to display documents that are created remotely with the DevExpress Report and Dashboard Server.

This WebDocumentViewerRemoteSourceSettings object provides access to the following properties:

csharp
@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()
vb
model MyApplication.Models.DocumentViewerModel 

Html.DevExpress().WebDocumentViewer(Sub(settings)
    settings.Name = "WebDocumentViewer"
    settings.SettingsRemoteSource.ServerUri = Model.ServerUri
    settings.SettingsRemoteSource.AuthToken = Model.AuthToken
End Sub).Bind(Model.ReportUrl).GetHtml()

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

Inheritance

Object StateManager PropertiesBase WebDocumentViewerRemoteSourceSettings

See Also

WebDocumentViewerRemoteSourceSettings Members

DevExpress.XtraReports.Web.WebDocumentViewer Namespace