printFile() and printFilestat(),

<< Click to Display Table of Contents >>

Navigation:  Calling vpxPrint >

printFile() and printFilestat(),

 

These definitions are included in { xPrint.i } file (PROGRESS users).

 

printFile() is the main entry point of vpxPrint. This procedure reads a file and interprets vpxPrint tags to produce the report.

 

Syntax:

 

 RUN printFile( <File-name>).

 

PROCEDURE printFile EXTERNAL "xPrint.dll" PERSISTENT:

   DEF INPUT PARAMETER A AS CHAR.

END.

 

 

printFileStat is similar to printFile() except that a return code is sent to the calling program.

 

 

Syntax:

 

         DEF VAR <Return-code> as int NO-UNDO.

 

         RUN printFileStat( <File-name>, OUTPUT <Return-code>).

 

 

Values of return code :

0 : normal, the user has printed the whole report

1:  The user has canceled the printer dialog box.

2:  Some pages have been printed.

3:  No pages have been printed.

4:  No printer.

18: Print spooler or printing system problem (may be temporary)

100 : The vpxPrint file does not exist

 

 

 

PROCEDURE printFileStat EXTERNAL "xPrint.dll" PERSISTENT:

   DEF INPUT PARAMETER A AS CHAR.

   DEF OUTPUT PARAMETER RetCode as LONG.

           END.

 

about_24_h Starting with the version 10.17, the file name can be a web address like "http://www.4gl.fr/Full.xpr". In this case, specify the http or https prefix.

 

printPDF() should not be used anymore.