Back to Devexpress

ReportsModuleV2.ReportDataType Property

expressappframework-devexpress-dot-expressapp-dot-reportsv2-dot-reportsmodulev2.md

latest4.2 KB
Original Source

ReportsModuleV2.ReportDataType Property

Specifies the report data type used by the Reports V2 module.

Namespace : DevExpress.ExpressApp.ReportsV2

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

NuGet Package : DevExpress.ExpressApp.ReportsV2

Declaration

csharp
public Type ReportDataType { get; set; }
vb
Public Property ReportDataType As Type

Property Value

TypeDescription
Type

A Type object specifying the report data type used by the Reports module.

|

Remarks

Use this property to specify a custom report data type to be used by the Reports module. To implement a custom report data supported by the ReportsModuleV2 module, implement the IReportDataV2 interface.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ReportDataType 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.

xaf-how-to-create-and-setup-an-xtrareport-report-for-exporting-to-a-stream-in-a-non-xaf/CS/ExportReportDemoEF/ExportReportDemoEF.Module/Module.cs#L47

csharp
ReportsModuleV2 reportModule = moduleManager.Modules.FindModule<ReportsModuleV2>();
    reportModule.ReportDataType = typeof(DevExpress.Persistent.BaseImpl.EF.ReportDataV2);
}

xaf-print-a-report-without-displaying-a-preview/CS/InstantPrintReportsV2Example.Web/WebApplication.cs#L47

csharp
this.reportsModuleV21.EnableInplaceReports = true;
this.reportsModuleV21.ReportDataType = typeof(DevExpress.Persistent.BaseImpl.ReportDataV2);
//

xaf-how-to-create-and-setup-an-xtrareport-report-for-exporting-to-a-stream-in-a-non-xaf/VB/ExportReportDemoEF/ExportReportDemoEF.Module/Module.vb#L49

vb
Dim reportModule As ReportsModuleV2 = moduleManager.Modules.FindModule(Of ReportsModuleV2)()
    reportModule.ReportDataType = GetType(DevExpress.Persistent.BaseImpl.EF.ReportDataV2)
End Sub

xaf-print-a-report-without-displaying-a-preview/VB/InstantPrintReportsV2Example.Web/WebApplication.vb#L49

vb
Me.reportsModuleV21.EnableInplaceReports = True
Me.reportsModuleV21.ReportDataType = GetType(DevExpress.Persistent.BaseImpl.ReportDataV2)
'

See Also

ReportsModuleV2 Class

ReportsModuleV2 Members

DevExpress.ExpressApp.ReportsV2 Namespace