Skip to main content

ASPxWebDocumentViewer.ReportSourceId Property

SECURITY NOTE

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.v24.1.Web.WebForms.dll

NuGet Package: DevExpress.Web.Reporting

Declaration

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

Property Value

Type Default Description
String String.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:

aspx-web-doc-viewer-set-report

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

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

    }
}
See Also