Controlling Preview Dialog

TECH TIP: Controlling the Built-in Previewer

You can control the built-in preview form via the Report.OnPreviewFormCreate event.

For example the following code sets the Print Preview form to maximized and sets the Viewer ZoomSetting to 100%:

Note: You will need to add ppViewr to the uses clause of your unit, so that the ZoomSetting enumerated type is recognized by the compiler.