Silverfrost Logo About Us | Contact Us
 

SELECT_PRINTER@

Platform

Win32(ClearWin+)

Purpose

To configure and select the active printer.

Syntax

INTEGER FUNCTION SELECT_PRINTER@( DEV, PORT )
CHARACTER*(*) DEV, PORT

Description

A call to SELECT_PRINTER@ will provide a standard Windows dialog box from which the user is able to select and configure any of the attached printer devices.

On return DEV will contain the name of the printer device that has been selected and PORT will contain the name of the port it is connected to.

A character array of size 256, in each case, should be sufficient to hold the returned data.

Return value

Returns 1 for success or zero if the user clicked on the CANCEL button.

See also

OPEN_PRINTER@, CLOSE_PRINTER@

Example

PORT      LPT1: , COM3: , FAX: ... 

 

 

Copyright © 1999-2017 Silverfrost Limited