Please enable JavaScript to view this site.

vpxPrint Report Template

Navigation: » No topics above this level «

Basics

Scroll Prev Top Next More

 

The vpxPrint Report Template is a Progress include RT.i. vpxPrint version 10.28 is mandatory to use it.

 

Main logic:

 

1.Define a stream:

a)DEF STREAM O.        // example stream_name O

 

2.Include files:

a){ xprint.i }                                                //        standard vpxPrint include

b){ RT.i                &STREAM = stream_name }                //        the vpxPrint Report Template include

 

3.Open the stream in PAGED mode:

a)OUTPUT STREAM stream_name TO xxxxx PAGED.

 

4.RUN startReport

 

5.FOR EACH detail_record......

a)RUN printRow(lastDetail).                // lastDetail as logical, true on last record

 

6.RUN endReport

 

 

vpxPrint Report Template uses a callback strategy to give back control to the application.

It uses dynamic calls, so all callback procedures or functions are optional, except reportInialize (recommended), reportRowHeight() and reportRow().

 

The vpxPrint Report Template gives the control to the application only when needed by the report logic and the settings, this is entirely managed by the template.

 

 

Standard callbacks strategy:

1.startReport:

reportInitialize

*MANDATORY*

onBeforePage

-optional-

reportHeader

-optional-

reportTitle

-optional-

2.printRow:

reportRowHeight()

-optional-

reportRow

*MANDATORY*

reportTitle

-optional-

reportFinal

-optional-

onBeforeDrawLines

-optional-

onBeforeNextPage()

-optional-

onBeforePage

-optional-

onAfterPage

-optional-

 

3.endReport:

onBeforeDrawLines

-optional-

onAfterPage

-optional-

reportFooter

-optional-