Table of Contents

Class ReportHtmlProjection

Namespace
DocWright.Reporting.Viewer
Assembly
DocWright.Reporting.Viewer.dll

A paginated report as HTML and inline SVG, with the region map a viewer binds behaviour to.

public sealed class ReportHtmlProjection
Inheritance
ReportHtmlProjection
Inherited Members

Remarks

The projection reads the same ReportPageModel the PDF and image renderers read, so a preview and an export cannot disagree about where anything is or how many pages there are — which is the one failure a separate viewer renderer always eventually produces.

The markup carries no script and no event handlers, and every value interpolated into it is escaped. A report definition is untrusted input; a viewer is a browser.

Properties

Diagnostics

Gets what the projection reported, in the order it was reported.

Html

Gets the whole projection: the style sheet followed by every page, as Output asked for it.

Pages

Gets the pages, in order, each as its own markup.

RegionMap

Gets the region map: what a viewer binds to instead of reading the markup back.

StyleSheet

Gets the style sheet the markup needs, without a <style> element around it.