Consultor Eletrônico



Kbase 17721: EDITOR widget and HEADERS
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
EDITOR widget and HEADERS


When printing a paged output with a HEADER, one would expect the
header to appear on every page regardless of the the size of the
output. This is true unless you are printing the contents of an
editor widget. If the contents flow over to the next page, header
will not print till the entire contents of the editor widgets are
printed.

This is due to the reason that if page-size specified is smaller than
the height of the frame to be printed, the entire frame will be
displayed before the page break.

One possible solution is to define the header in the same frame
as the editor widget. Following is a sample code. To test, enter
10 - 15 lines in the editor.


DEF VAR editor-1 AS CHAR
VIEW-AS EDITOR SCROLLBAR-VERTICAL
SIZE 30 BY 10 NO-UNDO.

DEF FRAME editor-frame
editor-1 NO-LABEL
HEADER
" THIS IS THE HEADER OF THE REPORT " SKIP(2)
WITH WIDTH 80 NO-LABELS NO-BOX NO-UNDERLINE STREAM-IO.

UPDATE editor-1 WITH FRAME data-entry NO-LABELS TITLE
" Enter 10 - 15 lines ".

OUTPUT TO PRINTER PAGED PAGE-SIZE 10.

DISPLAY editor-1 WITH FRAME editor-frame.
OUTPUT CLOSE.

Progress Software Technical Support Note # 17721