Top
PowerFORM Runtime V11.0 Reference
FUJITSU Software

3.3.1 Partition Output

In partition output, the position of the field to be printed is not specified when creating the descriptor. The program dynamically specifies the position of the field. The position of the immediately preceding printed field is used as a reference. The print position is dynamically specified by feeding any number of lines before or after a field group is printed.

Partition field groups include the floating partition field group and fixed partition field group. The print position of the floating partition field group can be dynamically specified. The position of the fixed partition field group is specified when creating the descriptor. The field group is always printed at the position with the left top end of the form used as an origin.

When a partition field group is printed, execute the form feed function or line feed function as required. If the descriptor is changed, the system executes form feed processing according to the vertical size of the form.

If a fixed partition is output which has a position before the position of the immediately preceding output partition, a form feed is output before the fixed partition. The partition is then printed at the specified position.

Note: For a fixed partition field group that specifies a number of lines to be fed, only "printing before line feed" is valid.

The following print methods are valid for partition output:

  1. Printing before a line feed

    Printing before line feed prints a partition field group, then feeds the specified number of lines.

    The number of lines is specified during output. If 0 is specified, no lines are fed. If 0 is specified for the number of lines and a floating partition field group is continuously printed using partition output, the first line of the field group overlaps with the last line of the previously printed field group. To avoid this processing error, specify something other than 0 for the number of lines or leave the last or first line of the partition field group blank when creating the descriptor.

    Figure 3.3 shows an example of printing before line feed.

    Figure 3.3 Example of printing before a line feed

    Figure 3.4 Sample Program: Printing before line feed

  2. Printing after a line feed

    Printing after a line feed feeds a specified number of lines, and then prints a partition field group.

    The number of lines is specified during output. If 0 is specified, no lines are fed. If 0 is specified for the number of lines and a floating partition field group is continuously printed using partition output, the first line of the field group overlaps with the last line of the previously printed field group. To avoid this output error, specify a value other than 0 for the number of lines or leave the last or first line of the partition field group blank when creating the descriptor.

    Printing after line feed is only valid for a floating partition field group. When a fixed partition field group is printed, the number of feed lines specified by the application program is ignored. The fixed partition field group is always printed at the position specified in the descriptor.

    Figure 3.5 shows an example of printing after line feed.

    Figure 3.5 Example of printing after a line feed

    Figure 3.6 Sample Program: Printing after line feed