Back to Devexpress

ASPxWebDocumentViewer.ReportSourceId Property

xtrareports-devexpress-dot-xtrareports-dot-web-dot-aspxwebdocumentviewer-d55801e5.md

latest2.5 KB
Original Source

ASPxWebDocumentViewer.ReportSourceId Property

SECURITY-RELATED CONSIDERATIONS

Deserializing a report layout from untrusted resources may create security issues. Serializable System.Object properties that contain custom type values are not (de)serialized automatically. Review the following help topic for information on how to (de)serialize custom type values: Reporting — Safe Deserialization.

Specifies the name of the report type whose instance should be displayed in the Document Viewer.

Namespace : DevExpress.XtraReports.Web

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

NuGet Package : DevExpress.Web.Reporting

Declaration

csharp
[DefaultValue("")]
public string ReportSourceId { get; set; }
vb
<DefaultValue("")>
Public Property ReportSourceId As String

Property Value

TypeDefaultDescription
StringString.Empty

The report type name.

|

Remarks

When you select a report in the Web Document Viewer’s smart tag menu, you select a value for the ReportSourceId property:

The property ReportSourceId accepts the report type name. The report type is specified in the report’s code-behind file:

csharp
namespace WebFormsExample.Reports {
    public partial class XtraReport1 : DevExpress.XtraReports.UI.XtraReport {
        public XtraReport1() {
            InitializeComponent();
        }

    }
}
vb
Partial Public Class XtraReport1
    Inherits DevExpress.XtraReports.UI.XtraReport
    ` ...
End Class

See Also

ASPxWebDocumentViewer Class

ASPxWebDocumentViewer Members

DevExpress.XtraReports.Web Namespace