Using QMF


Adding page headings and footings

You can display headings and footings at the top and bottom of online reports. You can also display them at the top and bottom of each page in a printed report.

To add page headings and footings:

  1. On the QMF command line, enter:
    SHOW FORM.PAGE
    

    The FORM.PAGE panel displays. Figure 100 shows a sample FORM.PAGE panel.

    Figure 100. Add page headings and footings on the FORM.PAGE panel.

    +--------------------------------------------------------------------------------+
    | FORM.PAGE                                                                      |
    |                                                                                |
    | Blank Lines Before Heading ===> 0       Blank Lines After Heading ===> 2       |
    | LINE  ALIGN   PAGE HEADING TEXT                                                |
    | ----  ------  ----+----1----+----2----+----3----+----4----+----5----+          |
    | 1     CENTER  DIVISION EARNINGS REPORT                                         |
    | 2     CENTER                                                                   |
    | 3     CENTER                                                                   |
    | 4     CENTER                                                                   |
    |               *** END ***                                                      |
    |                                                                                |
    | Blank Lines Before Footing ===> 2       Blank Lines After Footing ===> 0       |
    | LINE  ALIGN   PAGE FOOTING TEXT                                                |
    | ----  ------  ----+----1----+----2----+----3----+----4----+----5----+          |
    | 1     CENTER  COMPANY NAME                                                     |
    | 2     CENTER                                                                   |
    | 3     CENTER                                                                   |
    | 4     CENTER                                                                   |
    |               *** END ***                                                      |
    +--------------------------------------------------------------------------------+
  2. Move the cursor to the PAGE HEADING TEXT field.
  3. Type the text you want to display at the top of each page in the report. For this example, type DIVISION EARNINGS REPORT.

    You can specify either left or right justification of the text, or align the text at a specific column.

    If all the heading text for one line does not fit in the space allowed for that line, type APPEND in the ALIGN column of the next line. Then, change its line number to the same number as the preceding line, and continue typing the text. Be sure to indent the appended text at least one space.

    If you need another line, move the cursor to the line above the place you want the new line and press the Insert function key. You can specify up to 999 lines of text.

  4. Type the text you want to display at the bottom of each page for the report in the PAGE FOOTING TEXT field. For this example, type COMPANY NAME
  5. Press the Report function key to see the changed report.

    Figure 101. The changed report displays the page heading and footing.

    +--------------------------------------------------------------------------------+
    |                            DIVISION EARNINGS REPORT                            |
    |                                                                                |
    |                                                                                |
    |   DEPT.     EMPLOYEE                                     TOTAL                 |
    |   NUMBER      NAME           SALARY  COMMISSIONS        EARNINGS               |
    |   ------    ---------  ------------  -----------    ------------               |
    |     15      KERMISCH     $12,258.50      $110.10      $12,368.60               |
    |             NGAN         $12,508.20      $206.60      $12,714.80               |
    |             ROTHMAN      $16,502.83    $1,152.00      $17,654.83               |
    |                        ------------  -----------    ------------               |
    |       DEPT. 15 TOTALS    $41,269.53    $1,468.70      $42,738.23               |
    |                                                                                |
    |     20      JAMES        $13,504.60      $128.20      $13,632.80               |
    |             PERNAL       $18,171.25      $612.45      $18,783.70               |
    |             SNEIDER      $14,252.75      $126.50      $14,379.25               |
    |                        ------------  -----------    ------------               |
    |       DEPT. 20 TOTALS    $45,928.60      $867.15      $46,795.75               |
    |                                                                                |
    |     38      ABRAHAMS     $12,009.75      $236.50      $12,246.25               |
    |             NAUGHTON     $12,954.75      $180.00      $13,134.75               |
    |             O'BRIEN      $18,006.00      $846.55      $18,852.55               |
    |             QUIGLEY      $16,808.30      $650.25      $17,458.55               |
    |                        ------------  -----------    ------------               |
    |       DEPT. 38 TOTALS    $59,778.80    $1,913.30      $61,692.10               |
    |                                                                                |
    |                        ============  ===========    ============               |
    |                         $146,976.93    $4,249.15     $151,226.08               |
    |                                                                                |
    |                                                                                |
    |                                   COMPANY NAME                                 |
    +--------------------------------------------------------------------------------+

You have finished making changes to this report.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]