Back to Devexpress

XtraReport.ComponentStorage Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xtrareport-33f82cec.md

latest3.1 KB
Original Source

XtraReport.ComponentStorage Property

Retrieves a collection of components serialized along with the report, such as data sources.

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
[Browsable(false)]
public XRComponentCollection ComponentStorage { get; }
vb
<Browsable(False)>
Public ReadOnly Property ComponentStorage As XRComponentCollection

Property Value

TypeDescription
DevExpress.XtraReports.UI.XRComponentCollection

A collection that contains report components.

|

Remarks

Use the DataSourceManager class methods to manage the ComponentStorage at runtime.

The DataSourceManager.AddDataSources method allows you to add data sources to the storage. Review the following help topic for more information: Manage Data Sources at Runtime.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ComponentStorage property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

reporting-winforms-provide-authentication-to-access-json-data/CS/Form1.cs#L102

csharp
int i = 0;
foreach(var component in report.ComponentStorage) {
    var jsonDS = (component as DevExpress.DataAccess.Json.JsonDataSource);

reporting-winforms-provide-authentication-to-access-json-data/VB/Form1.vb#L102

vb
Dim i As Integer = 0
For Each component In report.ComponentStorage
    Dim jsonDS = (TryCast(component, DevExpress.DataAccess.Json.JsonDataSource))

See Also

XtraReport Class

XtraReport Members

DevExpress.XtraReports.UI Namespace