Consultor Eletrônico



Kbase 16371: How to run Results reports outside of Results ?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
How to run Results reports outside of Results ?

This knowledgebase explains how to run reports generated by Results
outside of the Results product.

Character Results
-----------------

Reports, Labels and Exports can be run outside of Results except
when the report contains "Ask at run-time".

In order to run a Report (Label, Export) you must add the following:

DEFINE NEW SHARED VARIABLE qbf-total AS INTEGER NO-UNDO.
OUTPUT ......... /* whatever, such as TO TERMINAL PAGED */
RUN rep00001.p. /* or exp00001.p or lbl00001.p */
OUTPUT CLOSE.
RETURN.

This is in the RESULTS books, Chapter 9 Integrating Results into
Existing Applications, section Using the Generated Report, Labels and
Data Export Code.


GUI Results
-----------

From within Results, open a report, choose QUERY -> GENERATE ...
and specify a file name.

This will generate 4GL code which can be run directly from the
Procedure Editor or Progress application.

In V7 there is the restriction that Results will not generate
Ask at Runtime logic. However, this was changed in V8, reports
generated in V8 Results can perform Ask at Runtime logic.

Progress Software Technical Support Note # 16371