How To…AutoSize Font to One Page


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


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.


Sample Delphi code: