Method ToDocument
ToDocument(ReportPageModel, FontEngine)
Builds a Word document from a paginated report.
public static WordDocument ToDocument(ReportPageModel pages, FontEngine fonts)
Parameters
pagesReportPageModelThe paginated report.
fontsFontEngineThe fonts to rasterize charts, gauges and custom items with.
Returns
- WordDocument
The document.
ToDocument(ReportPageModel, FontEngine, ReportDocxExportOptions?)
Builds a Word document from a paginated report.
public static WordDocument ToDocument(ReportPageModel pages, FontEngine fonts, ReportDocxExportOptions? options)
Parameters
pagesReportPageModelThe paginated report.
fontsFontEngineThe fonts to rasterize charts, gauges and custom items with.
optionsReportDocxExportOptionsWhat to write, or null for the defaults.
Returns
- WordDocument
The document.
Exceptions
- ArgumentNullException
pagesorfontsis null.- UnsupportedFeatureException
StrictMode is set and part of the report has no place in a Word document.