centreFrame

centreFrame(frame: Frame input) updating;

The centreFrame method of the Printer class centers the frame specified in the frame parameter in the center of the horizontal axis of the page.

An exception is raised if this method is invoked from a server method.

The code fragment in the following example shows the use of the centreFrame method.

// Sets frame1 and frame3 of the form to be the header and footer frames.
// These frames are printed at the top and bottom of each page printed by
// the application.
app.printer.setHeader(frame1);
app.printer.setFooter(frame3);
app.printer.centreFrame(frame2);