-
Notifications
You must be signed in to change notification settings - Fork 0
Adding a new ReportComponent
DavidLandes edited this page Jan 12, 2022
·
6 revisions
- A
ReportComponentshould be an element of a report that can be converted directly into HTML. -
ReportComponent.ToHtml()should generate ALL HTML code for theReportComponentusingReporting.Tagand the provided Methods.
- Make sure the new class inherits
ReportComponent. - If the new component is a container for other report components, use the inherited
ReportComponent._childrento store them.- This allows the
Reportclass to search its content for Component IDs
- This allows the
- Make sure there is a default constructor, with no parameters.
- If there are properties that need to be set, make sure they have default values and necessary getters/setters
- To properly serialize, add
[XmlInclude(typeof(MyNewReportComponentClass))]to the top ofReport.csalong with the other similar lines of code.