Table of Contents

Class ReportValidator

Namespace
DocWright.Reporting
Assembly
DocWright.Reporting.dll

Checks a report definition for the mistakes a designer can make that the XML schema cannot see.

public static class ReportValidator
Inheritance
ReportValidator
Inherited Members

Remarks

Schema validation is close to worthless as a correctness gate for RDL, and that is measured rather than asserted: the committed schema types sizes, colours and enumerations as bare strings, and models most content as unordered xsd:choice. A report with two textboxes called Total, a tablix bound to a dataset that does not exist, and "2,5pt" where a size belongs validates perfectly and fails at render.

Findings come back as ConversionDiagnostic rather than a type of their own: the code, severity, message and location the designer needs are exactly its four fields, and a parallel type would only have to be converted at every boundary. Location carries the element path.

This is a first set of rules, not the whole of MS-RDL's validity. Everything it reports is a genuine defect; it does not yet claim that silence means the report is valid.

Methods

Validate(ReportDefinition)

Validates a definition.