Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Collapse]Reporting
 [Expand]Product Information
 [Collapse]Creating Reports in Visual Studio
  [Expand]Adding a Report to Your .NET Application
  [Expand]Getting Started with DevExpress Reporting
  [Collapse]Detailed Guide to DevExpress Reporting
   [Expand]Storing and Distributing Reports
   [Expand]Providing Data to Reports
   [Collapse]Shaping Report Data
    [Expand]Data Filtering
    [Expand]Grouping and Sorting
    [Expand]Shaping Data using Binding Expressions
    [Expand]Shaping Data using Legacy Data Bindings
    [Expand]Using Calculated Fields
    [Collapse]Using Report Parameters
      Parameters Overview
      Creating Multi-Value and Cascading Report Parameters
      Requesting and Passing Report Parameter Values
      Creating Custom Report Parameters
      Passing Parameter Values to a Data Source Query
   [Expand]Report Navigation, Interactivity and Appearance
   [Expand]Reporting API
  [Expand]Detailed Guide to Visual Studio Report Designer
 [Expand]Creating End-User Reporting Applications
 [Expand]API Reference
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Creating Custom Report Parameters

This document describes how to use custom type parameters in your report.

When creating a report parameter at runtime, you can set its Parameter.Type property to a custom type (such as System.Enum, or XPCollection):

When previewing a report with parameters of custom types, a Print Preview automatically displays standard editors for requesting these parameters' values. See Requesting and Passing Report Parameter Values to learn how to implement custom parameter editors in your application's platform.

Tip

See Storing Report Layouts to learn how to serialize your custom parameters along with a report's definition.

How would you rate this topic?​​​​​​​