Consultor Eletrônico



Kbase 13303: Editor Widget and Printing
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
Editor Widget and Printing


Editor widgets print out in one of two ways ONLY:

1. You have:
Name: Sports Company
Address: 123 main str
Desc: This is the Description of the company
which sells us sporting goods equipment,
etc, .......

If you have Description as an Editor widget and you
are trying to OUTPUT TO file or OUTPUT TO PRINTER. The Editor
widget information will print, but the data will be word wrapped
by Progress. This may not be the same word wrapping used when
the data was entered in the widget.

This works fine if there is just text in the editor widget,
but if the user has put the data in with any type of formatting
it will probably lose that formatting when printed.

ex. DESC editor on Screen contains
This company provides us the following sporting
equipment:
- Baseballs
- Basketballs
- Rollerblades
Please contact J. Jones for more information.

Printed it might look like the following:

This company provides us the following sporting
equipment:
- Baseballs
- Basketballs
-Rollerblades
Please contact J.Jones for more information.

PLEASE note that this is NOT actual output, but that it does show the
problem!!!

2. Your only method of getting formatted editor widget
information to really print straight is to use the save-file
editor method and save the data to a temporary file. You
can then use the Brand New .dll for printing in windows.

ok = Description:save-file(junk.tmp).

p_printFile = "junk.tmp".

run adecomm/_osprint.p (INPUT p_window,
INPUT p_PrintFile,
INPUT p_FontNumber,
INPUT p_UseDialog,
INPUT p_PageSize,
INPUT p_PageCount,
OUTPUT p_printed).

_osprint.p will put up a Windows/Print Manager type
dialog for printing.

p_FontNumber allows you to pick any font you want
to print out the data.

The problem with this solution is that the editor widget
is printed separately from the rest of the data on the
screen. Also, you have this temporary junk file.

Progress Software Technical Support Note # 13303