printFile() and printFilestat(),
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" :
DEF INPUT PARAMETER A AS CHAR.
END.
printFileStat is similar to printFile() except that a return code is sent to the program in case of cancelling the printer dialog box and/or to indicate what the user has done. You must specify a second parameter as output.
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 cancelled the printer dialog box.
2: Some pages have been printed.
3: No pages have been printed.
4: No printer.
100 : The vpxPrint file does not exist
PROCEDURE printFileStat EXTERNAL "xPrint.dll" :
DEF INPUT PARAMETER A AS CHAR.
DEF OUTPUT PARAMETER RetCode as LONG.
END.
printPDF() should not be used anymore.
Note that entry points are case-sensitive. printFile is not equivalent to printFILE.
These definitions are included in { xPrint.i } file (PROGRESS users).