How To…AutoSize Font to One Page

Question

“How can I shrink the font to force the report to produce a single page?”

Solution

This example contains a pre-processing step that generates the report pages to a dummy output device. If more than one page is produced, then the font size is adjusted. Following the pre-processing step, Report.Print is called to generate the report to preview.

Download:  ForceFontToOnePageReport.zip

Sample Delphi code: