Report writer

ReportWriterControl

Run reports exported from Crystal Reports as paginated, grouped pages in Blazor.

Overview

ReportWriterControl is a Blazor report writer that runs a report definition and shows paginated pages with group headers, footers and a group tree. Use it to move Crystal Reports to the web: CrystalXmlReportLoader reads a Crystal XML export, your IReportDataExecutor supplies the rows, and no Crystal engine is needed to run the report or export it to HTML, CSV or Excel. Users search, zoom and print from the toolbar.

Examples

#Package costs by region, package, cost group and supplier

Pick a package and a season and press Run, open the group tree to jump between the four group levels, or press Parameters in the toolbar for the writer's own dialog.

Report Groups

No groups available.

No report loaded.
Ready

Documentation

ParameterTypeDefaultDescription
ShowChromebooltrueToolbar, group tree, tabs and the parameter dialog. False drops the bare page area into a host that has its own UI.
UsePositionedLayoutboolfalseRenders with the Crystal band and object geometry instead of table columns, in ShowReportAsync, the parameter dialog and refresh.
PdfViewerComponentTypeType?nullThe PDF viewer component used for .rpt output, for trimmed hosts that bring the Documents package.
PromptOptionalParametersboolfalseIncludes optional parameters in the parameter dialog.
TabsOrientationTabOrientationTabOrientation.VerticalLayout of the report tabs (the main report and its drill-downs, shown once there are two): Vertical, a rail; HybridVertical, wrapped rows; Horizontal, one scrolling row. A right-click on the strip opens the viewer's own orientation and theme menu; the choice goes to IReportViewerSettings and is read back when the viewer first loads.
TabsThemeTabThemeTabTheme.WindowsClassicColors of that strip: WindowsClassic, FolderTabs, ColorfulCards, Minimal or Dark; saved and restored the same way.
OnCloseEventCallback—The toolbar's Close button. Unset with ShowChrome on, the button is still there and does nothing.
OnPageTitleChangedEventCallback<string>—Raised by ShowReportAsync with the report's file name without extension, for a host's title bar.
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.