Академический Документы
Профессиональный Документы
Культура Документы
Procedure
Use the BOX, POSITION, and SIZE commands for drawing boxes, lines, and shading to print particular windows within a
form or passages of text within a window in a frame or with shading.
The SAP printer drivers that are based on page-oriented printers (the HP LaserJet driver HPL2, the Postscript driver
POST, the Kyocera Prescribe driver PRES) employ these commands when printing. Line printers and page-oriented
printers not supported in the standard ignore these commands. You can view the resulting printer output in the
SAPscript print preview.
1.
/: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
2.
3.
BOX Command
BOX Command
TW (twip)
PT (point)
IN (inch)
MM (millimeter)
CM (centimeter)
LN (line)
CH (character)
Example
/: BOX FRAME 10 TW
Draws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT).
/: BOX INTENSITY 10
Fills the window background with shading having a grayscale of 10%.
/:
/:
/:
/:
BOX
BOX
BOX
BOX
1 CM FRAME 10 TW INTENSITY 15
'13.5' CM FRAME 10 TW
TW HEIGHT '13.5' CM FRAME 10 TW
TW HEIGHT '13.5' CM FRAME 10 TW
Draws two rectangles and two lines to construct a table of three columns with a highlighted heading.
POSITION Command
POSITION Command
Effect: Sets the origin for the coordinate system used by the XPOS and YPOS parameters of the BOX command. When
a window is first started, the POSITION value is set to refer to the upper left corner of the window (default setting).
Additions: If a parameter value does not have a leading sign, then its value is interpreted as an absolute value, in
other words, as a value that specifies an offset from the upper left corner of the output page. If a parameter value is
specified with a leading sign, then the new value of the parameter is calculated relative to the old value. If one of the
parameter specifications is missing, then no change is made to this parameter.
1.
XORIGIN, YORIGIN: Origin of the coordinate system.
2.
WINDOW: Sets the values for the left and upper edges to match those of the current window (default setting).
3.
PAGE: Sets the values for the left and upper edges to match those of the current output page (XORIGIN = 0
cm, YORIGIN = 0 cm).
Example
/: POSITION WINDOW
Sets the origin for the coordinate system to the upper left corner of the window.
Effect: Sets the values of the WIDTH and HEIGHT parameters used in the BOX command. When a window is first
started, the SIZE value is set to the same values as the window itself (default setting).
Additions: If one of the parameter specifications is missing, then no change is made to the current value of this
parameter. If a parameter value does not have a leading sign, then its value is interpreted as an absolute value. If a
parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old
value.
1.
WIDTH, HEIGHT: Dimensions of the rectangle or line.
2.
WINDOW: Sets the values for the width and height to the values of the current window (default setting).
3.
PAGE: Sets the values for the width and height to the values of the current output page.
Example
/: SIZE WINDOW
Sets WIDTH and HEIGHT to the current window dimensions.
/:
/:
/:
/:
POSITION WINDOW
POSITION XORIGIN -20 TW YORIGIN -20 TW
SIZE WIDTH +40 TW HEIGHT +40 TW
BOX FRAME 10 TW
A frame is added to the current window. The edges of the frame extend beyond the edges of the window itself, so as
to avoid obscuring the leading and trailing text characters.