Futurebasic/Language/Reference/close lprint

From Wikibooks, open books for an open world
Jump to navigation Jump to search

CLOSE LPRINT statement[edit | edit source]

Syntax[edit | edit source]

CLOSE LPRINT

Revised[edit | edit source]

November, 2006 (FB 4, Revision 4)

Description[edit | edit source]

After output has been routed to the printer, CLOSE LPRINT informs the Print Manager that the print job is complete. The current page is printed and the print job closed. You should execute a ROUTE _toScreen statement immediately before or after calling CLOSE LPRINT.

Notes[edit | edit source]

Before using CLEAR LPRINT or CLOSE LPRINT, you must route printing to the screen. Closing the printer while output is pointing to the printed page is equivalent to cutting off a limb while you are sitting on it. The following fragment shows how this might be done.

ROUTE _toScreen
CLOSE LPRINT

Example[edit | edit source]

NEED IMG!!! <img src="res/cd.gif" alt="" height="19" width="20" border="0"> CD Example: Printer.BAS

See Also[edit | edit source]

CLEAR LPRINT
DEF LPRINT
DEF PAGE
ROUTE_toPRINTER
ROUTE toSCREEN