Table of Contents

Property CustomItemDrawers

Namespace
DocWright.Reporting.Pagination
Assembly
DocWright.Reporting.dll

CustomItemDrawers

Gets the drawers for CustomReportItem types, keyed by the item's Type.

public IDictionary<string, ReportCustomItemDrawer> CustomItemDrawers { get; }

Property Value

IDictionary<string, ReportCustomItemDrawer>

Remarks

A custom report item is RDL's extension point: its Type names something whose meaning lives outside the definition, so an engine that guessed at one would be guessing at what only its author knows. A host that knows what a type means registers a drawer here, and the item is drawn from the shapes it returns.

An item with no registered drawer falls back to the built-in barcode drawer when its type names one, then to nothing with DXP9406. Registering a drawer for Barcode replaces the built-in one.

A drawer is called during pagination, from whatever thread paginates, and must be thread-safe. It is called once per item instance. An exception it raises is reported and the item is left undrawn, rather than failing the whole report.