Silverfrost Logo About Us | Contact Us
 

OPEN_PRINTER@

Platform

Win32(ClearWin+)

Purpose

To begin output to a graphics printer or plotter.

Syntax

INTEGER FUNCTION OPEN_PRINTER@( HANDLE ) 
INTEGER HANDLE

Description

OPEN_PRINTER@ generates a standard "Open Printer" dialog box from which the user can select a graphics printer or plotter device for subsequent output. If a device is successfully selected then subsequent calls to Silverfrost graphics routines are be written to this device. The printer or plotter is activated when CLOSE_PRINTER@ (see ) or the Silverfrost graphics routine NEW_PAGE@ is called (after calling this routine, it may be necessary to reset the text attributes).

The handle is supplied by the programmer and is used in conjunction with SELECT_GRAPHICS_OBJECT@.

Return value

This function returns 1 if the user selected a device or zero if the "CANCEL" button was selected.

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@, OPEN_PRINTER1@

 

 

Copyright © 1999-2017 Silverfrost Limited