Class ReportPreview
Runs a report definition against data made up from the fields it declares, so a designer can show a preview before the report has a data source.
public static class ReportPreview
- Inheritance
-
ReportPreview
- Inherited Members
Remarks
The data is invented from the definition alone: one column per declared field, typed by the
designer's rd:TypeName where there is one, and a fixed number of rows of values that vary
enough for a chart or a grouped tablix to look like a report rather than a column of the same number.
Nothing is executed and nothing is fetched — there is no query, no connection and no network.
Everything about it is fixed: the same definition previews to the same pages on every machine and every run, because the values come from the field's name and position rather than from a generator, and the execution time comes from the options rather than the clock.
Methods
- CreateSampleData(ReportDefinition, ReportPreviewOptions?)
Makes up a dataset for every dataset the definition declares.
- Render(ReportDefinition, FontEngine)
Runs and paginates a definition against made-up data.
- Render(ReportDefinition, FontEngine, ReportPreviewOptions?)
Runs and paginates a definition against made-up data.
- Render(ReportDefinition, FontEngine, ReportPreviewOptions?, CancellationToken)
Runs and paginates a definition against made-up data.