Kbase P84937: Printing text using view-as editor statement only the footer is printed.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  6/21/2004 |
|
Status: Unverified
SYMPTOM(s):
Printing text using view-as editor statement only the footer is printed.
Editor widget spanning several pages does not print the header form.
CAUSE:
Since editor widgets can have varying lengths of data, it is difficult to handle printing editors that span several pages. There are several issues that have been logged with Development for this particular problem.
FIX:
Include the editor widget in the definition of the header frame. For example:
def var l-text as char.
def var i as int.
def frame head-frm
l-text view-as editor size 5 by 5
header "HEADER TEXT" SKIP
with no-labels page-top DOWN.
def frame foot-frm
header "FOOTER TEXT" skip
with no-labels page-bottom DOWN.
do i = 1 to 200:
l-text = l-text + string(i, "ZZZ9") + chr(10) .
end.
output to textfile.txt paged page-size 20.
view frame head-frm.
view frame foot-frm.
display l-text WITH FRAME head-frm.
output close.