OPEN_PRINTER1@

Platform

Win32, x64

Purpose

To begin output to a graphics printer or plotter.

Syntax

INTEGER FUNCTION OPEN_PRINTER1@( UID ) 
INTEGER UID 

Description

OPEN_PRINTER1@ does not generate a standard "Open Printer" dialog box which means that printing can resume to the current printer after calls to OPEN_PRINTER@ and CLOSE_PRINTER@. This avoids the need to repeatedly select the same printer. Subsequent calls to Silverfrost graphics routines are written to this device. The printer or plotter is activated when CLOSE_PRINTER@ (see ) or the routine NEW_PAGE@ is called (after calling this routine, it may be necessary to reset the text attributes).

UID is a unique identifier supplied by the programmer and its value is used in conjunction with SELECT_GRAPHICS_OBJECT@.

Return value

This function returns 1 for success, otherwise zero.

Notes

This routine can be used in conjunction with the %gr format code that is used to draw to the screen using Silverfrost graphics routines (see Graphics format). It can also be used independently of WINIO@.

The standard call-back function GPRINTER_OPEN can also be used to produce graphics output.

See also

CLOSE_PRINTER@, DO_COPIES@, SELECT_PRINTER@

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited