Show TOC

Using the BOX, POSITION, and SIZE Commands in Texts and FormsLocate this document in the navigation structure

Use

Since BOX, POSITION, and SIZE are text commands, you can insert them directly in a text. However, usually you use these commands in forms, where you have better control of how a box or line and the accompanying text fit together. SAPscript does not automatically fill text into a box or otherwise orient text with respect to these graphical elements.

Example

Example of a command in a text: You enter the following line in a SAPscript document. The command draws box that is 17.5 cm long, 1 cm high, and with 10% shading:

/: BOX WIDTH '17.5' CM HEIGHT '1' CM INTENSITY 10

The upper left corner of the box is located at the upper left corner of the main window defined in the form. The text that you enter is not automatically oriented in accordance with the box. This means that the text does not always fit in the box. For example, if you enter three lines of text then the bottom line of text is likely to appear below the bottom of the box.

In a form, you can orient both text and graphical elements in the windows that you define. As a result, you have much better control over how graphics and text fit together.