7.6

Table Of Contents
Measure value specifying the weight of the paper (in grams per square meter). You can convert weight in pounds to weight in
grams by multiplying by the weight in pounds by 3.76.
orientation
Integer representing the orientation of the page (0=Portrait, 1=Landscape, 2=Reverse portrait, and 3=Reverse landscape).
mode
Reserved for future use. Specify 0 for now.
Code Sample Example
define(&mcolor,string,'')
&mcolor := 'White'
selectmedia(8.5,11,'Danny',&mcolor,20,0,0)
The code above will generate the following PostScript code (notice how the variable was
not replaced by its value).
612 792 0 ^SM (Danny) &mcolor 20 ^SPM
SelectPrinter (procedure)
This command is used to select the printer on which the next page set will be sent. It can be used to select the same physical
printer with different options, or a different printer altogether. It is meant to be used with the EndPageSet() command. This
command can currently be used only for Windows Printing.
Syntax
selectprinter(printername)
Arguments
printername
String identifying a printer queue.
Example
Refer to the code example given in the section describing the EndPageSet command on page 1.
Set (procedure)
This command assigns a new value to a variable. Only user-defined variables can be set. System variables are read-only.
Note that you can also use the assignment operator to assign a value to a variable. See "= (operator)" (page 391).
Syntax
set( name, value )
©2010 Objectif Lune Inc - 323 -