BASICS

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

BASICS

The basic manipulation consists to create a ASCII file. This file is transmitted to the vpxPrint DLL.

One of the easiest Progress programs is:

 

OUTPUT TO "Customer.txt" PAGED PAGE-SIZE 60.

 

FOR EACH customer NO-LOCK :

         DISP cust-num name city WITH STREAM-IO.

             END.                  

 

OUTPUT TO TERMINAL.

 

FILE-INFO:FILE-NAME = "Customer.txt".

 

RUN printFile( FILE-INFO:FULL-PATHNAME ).

 

printFile procedure is defined as an entry point in the DLL:

 

PROCEDURE printFile EXTERNAL "xPrint.dll" PERSISTENT :

             DEF INPUT PARAMETER A AS CHAR.

             END.

 

printFile() and other useful methods are defined in an include file, {xprint.i}

 

It's the first vpxPrint program!

The report will be printed with graphical rows and columns without writing anything else.

 

This conversion is done automatically by vpxPrint which interprets the title lines of the PROGRESS reports.

 

vpxPrint is controlled with tags embedded in the output in a HTML-like manner. For example:

<B>          starts bold characters

</B>        stops bold characters

<PREVIEW> starts the report in preview mode

 

 

vpxPrint works with a full page at a time.

 

Objects can be placed anywhere in the page before a page break.

You do not have to take care of field position to create objects, they can be placed in any order.

The only rule that applies is that the fields are Z-ordered in their creation sequence and fields can overlap an existing one in the background.