Demos
Documentation
API
More Samples
Download Wijmo

PrintDocument

The PrintDocument class makes it easy to create documents for printing or exporting to PDF. Most browsers allow you to select the paper size, orientation, margins, and whether to include page headers and footers.

The sample contains a table with some radial gauges. The table will be included in the PrintDocument.

Also it contains a FlexGrid control. Printing it directly would show the scrollbars and the part of the content that is visible. The PrintDocument class allows us to replace that with a printer-friendly version of the grid.

Simple Reports

If you are using a framework that supports templates (most do), you can use the CollectionView and PrintDocument classes to generate simple browser-based reports.

See the SimpleReports sample for an example.