expressappframework-devexpress-dot-expressapp-dot-reportsv2-dot-reportstoragebase-dot-loadreport-x28-devexpress-dot-expressapp-dot-reportsv2-dot-ireportdatav2-x29.md
Loads the specified report data object.
Namespace : DevExpress.ExpressApp.ReportsV2
Assembly : DevExpress.ExpressApp.ReportsV2.v25.2.dll
NuGet Package : DevExpress.ExpressApp.ReportsV2
public virtual XtraReport LoadReport(
IReportDataV2 reportData
)
Public Overridable Function LoadReport(
reportData As IReportDataV2
) As XtraReport
| Name | Type | Description |
|---|---|---|
| reportData | IReportDataV2 |
An IReportDataV2 persistent object used to store reports.
|
| Type | Description |
|---|---|
| XtraReport |
An XtraReport object that specifies the report content.
|
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.
private static void ExportReport(IReportDataV2 reportData, IObjectSpaceProvider objectSpaceProvider) {
XtraReport report = ReportDataProvider.ReportsStorage.LoadReport(reportData);
MyReportDataSourceHelper reportDataSourceHelper = new MyReportDataSourceHelper(objectSpaceProvider);
See Also