Back to Devexpress

ReportStorageBase.LoadReport(IReportDataV2) Method

expressappframework-devexpress-dot-expressapp-dot-reportsv2-dot-reportstoragebase-dot-loadreport-x28-devexpress-dot-expressapp-dot-reportsv2-dot-ireportdatav2-x29.md

latest3.3 KB
Original Source

ReportStorageBase.LoadReport(IReportDataV2) Method

Loads the specified report data object.

Namespace : DevExpress.ExpressApp.ReportsV2

Assembly : DevExpress.ExpressApp.ReportsV2.v25.2.dll

NuGet Package : DevExpress.ExpressApp.ReportsV2

Declaration

csharp
public virtual XtraReport LoadReport(
    IReportDataV2 reportData
)
vb
Public Overridable Function LoadReport(
    reportData As IReportDataV2
) As XtraReport

Parameters

NameTypeDescription
reportDataIReportDataV2

An IReportDataV2 persistent object used to store reports.

|

Returns

TypeDescription
XtraReport

An XtraReport object that specifies the report content.

|

Remarks

An example of using this method is provided in the How to: Print a Report Without Displaying a Preview topic.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the LoadReport(IReportDataV2) method.

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.

xaf-how-to-create-and-setup-an-xtrareport-report-for-exporting-to-a-stream-in-a-non-xaf/CS/XPO/ExportReport/ExportXAFReport/Program.cs#L39

csharp
private static void ExportReport(IReportDataV2 reportData, IObjectSpaceProvider objectSpaceProvider) {
    XtraReport report = ReportDataProvider.ReportsStorage.LoadReport(reportData);
    MyReportDataSourceHelper reportDataSourceHelper = new MyReportDataSourceHelper(objectSpaceProvider);

Implements

LoadReport(IReportDataV2)

See Also

ReportStorageBase Class

ReportStorageBase Members

DevExpress.ExpressApp.ReportsV2 Namespace