This example shows how to enable a report parameter of a custom System.Enum type and serialize that parameter so that it can be stored in the report layout file (REPX).
The code does the following:
- Creates a custom class inherited from the ReportDesignExtension class.
- Overrides the ReportDesignExtension.AddParameterTypes method to register a custom parameter type.
- Registers a custom extension using the ReportDesignExtension.RegisterExtension method.
- Assigns the report to the created extension using the ReportDesignExtension.AssociateReportWithExtension method.
- Form1.cs (VB: Form1.vb)
- DataObjects.cs (VB: DataObjects.vb)