NewFrame Command

Purpose

Ends and starts a new page on a printer device.

Syntax

[Printer.]NewFrame

Description

NewFrame is a method of the Printer object. NewFrame is an old form for EndPage & StartPage. It is advised to use EndPage/StartPage, rather than NewFrame.

Example

OpenW 1

Local h As Handle

Dlg Print Win_1, 0, h

SetPrinterHDC h

Output = Printer : FontSize = 12

StartDoc "test" : StartPage

Print "GFA"

Circle 200, 200, 150

Box 350, 200, 450, 300

NewFrame     ' EndPage : StartPage

Print "GFA2"

EndPage : EndDoc

Output = Win_1

Remarks

StartDoc starts a print job. StartPage prepares the printer driver to accept data. EndPage informs the device that the application has finished writing to a page. The printer spooler realizes the output on the printer. Repeat StartPage/EndPage for the next page. EndDoc ends a print job. The Page property returns the current page number.

See Also

Printer, EndDoc, StartDoc, EndPage, Page, StartPage

{Created by Sjouke Hamstra; Last updated: 20/10/2014 by James Gaite}