Automatic PROGRESS mode
<PROGRESS>
By default, vpxPrint interacts with PROGRESS DISPLAY instruction.
Display … with STREAM-IO will print like:
Cust-num Name City
-------- -------------------- ------------
00001 XXXXXXX YYYYYYY
vpxPrint interprets the '----' succession of chars as a PROGRESS separator line.
When a matched line is encountered, vpxPrint generates a graphic line instead of the old-fashioned '---- -----' line and sets bookmarks on each column in the display based on spaces separating the columns. There is only one title line on each page EXCEPT WHEN setting <PROLABELS>.
vpxPrint always use the first one. At the end of the page or end of report, vpxPrint draws automatically boxes and lines from the beginning to the end of display. At each page beginning, vpxPrint refresh this title bar, so you can mix your display instructions. Although that this process will be accurate in major circumstances, you would need to disable this function. In particular, when your page header contains some '----'… Insert a </PROGRESS> to disable this option and <PROGRESS> to enable the PROGRESS processing again.
vpxPrint uses points from #900 to #(900 + numberofCol – 1) to draw lines and boxes around the display.
Programming notes:
•When vpxPrint encounters a </PROGRESS> or </USE> and if the PROGRESS mode is already started, then vpxPrint finish the current PROGRESS mode by drawing lines and boxes around the display. If you do not want to close the current PROGRESS frame and use embedded vpxPrint frame within your display, you can use </USE=PROGRESS>. This leaves the current PROGRESS mode active. If another '-----' succession is encountered while <PROGRESS> mode is active then lines and boxes will be drawn around the new frame.
•The automatic PROGRESS mode allows you to easily transform your reports but it works with non-proportional fonts (without any add-on).
If you want to use proportional fonts for each column, you must use instructions like:
PUT "<C5><Farial><B>"
Cust-num
"<C20></B>"
Name
SKIP.
•If you want to use the automatic PROGRESS feature with this kind of display, you can simulate a PROGRESS title bar in the page header (see the sample program).
•If the PROGRESS mode is disabled with the </PROGRESS> tag, no standard Excel export occurs. If you want to enable the Excel export, you have to add a <EXCEL> tag.
<PROLABELS> vpxPrint can't determine exactly the number of lines your PROGRESS labels use in a DISPLAY instruction. By default, it considers that your labels are just one-line high. If your labels are higher than one line in height, you must use <PROLABELS>.
Syntax: <PROLABELS=n> Where n is the number of lines (decimal value) of your labels. Decimal value allows you to closer define the correct start of your automatic boxes.