DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

SaPrint(TCL_ADM)


SaPrint: SaPrint, SaPrintSetup, SaPrintGetPrinterName -- SCOadmin interfaces for interfacing with desktop printing support

Syntax

SaPrint icon [file] [option]
SaPrintSetup icon
SaPrintGetPrinterName icon

Description

SaPrint- associate a printer and options with an icon

SaPrintSetup- launch interface to configure printer

SaPrintGetPrinterName- return name of printer associated with icon


SaPrint
uses scoprint for associating an application with a printer icon on the desktop. scoprint associates a printer and various printing options with an icon. Applications can submit a file to that icon (the associated printer with printing options) for printing. When used with only the icon argument, SaPrint launches the graphical scoprint client providing a file selection box for printing a file.

SaPrintSetup icon
uses scoprint to launch a graphical user interface to configure the printer and printing options associated with the named icon.

SaPrintGetPrinterName icon
returns the name of a printer associated with the named icon.

Arguments


icon
title of a desktop icon representing an icon.

file
optional full pathname of a file to be printed. If omitted, a file selection box is presented for the user to interactively select the file to be printed.

Errors

Errors will be thrown and should be caught with ErrorCatch.

Notes

These functions are intended for and only work properly in the X Desktop environment.
16 September 2002
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003