Solaris Common Desktop Environment: Programmer's Guide

Desktop Printing Environment Variables

To have fully integrated printing, your application must use the values of the following four environment variables. The LPDEST variable is particularly important. It provides the ability for the user to choose the print destination by using a particular printer drop zone.

Printing Variable  

 

Description 

LPDEST

Uses the specified value as the printer destination for the file. If the variable is not set, the default printing device for your application should be used. 

DTPRINTUSERFILENAME

Specifies the name of the file as it should appear in the Print dialog or print output. If the variable is not set, the actual file name should be used.

DTPRINTSILENT

Specifies whether to display a Print dialog box. When the variable is set to True, the Print dialog should not be displayed. If the variable is not set, the dialog box should be displayed.

DTPRINTFILEREMOVE

When the variable is set to True, the file should be removed after it is printed. This functionality is intended for temporary files that don't need to be retained after printing is complete. If the variable is not set, the file should not be removed.