HP Data Entry and Forms Management System (VPLUS) Reference Manual (32209-90024)

Appendix L 677
A Programmer’s Guide to VPLUS
VPRINTSCREEN Intrinsic
Printing Screens from TDP
By default, EPOCLIST uses the VSETUP file to reference the supplied environment files.
These files must be accessible by TDP before EPOCLIST can be printed. If a different
environment file is used, EPOCLIST must be modified to reference the appropriate
environment file. In addition, the font definitions from VENV80 and VENV88 must be
included in the environment file used. (Refer to the fonts listed in the Limitations section).
Following are the steps involved to print the entire contents of EPOCLIST to a laser
printer:
1. :PURGE (or :RENAME)EPOCLIST
2. :SETJCW VPRINTJCW = 1
3. :Run your application program.
4. Access the PRINT function wherever it’s available to save screen contents in EPOCLIST.
Remember, all the data entered by the user will also be saved as part of the screen.
5. Exit application.
6. :SAVE EPOCLIST (EPOCLIST is the temporary file which was created in the above step.
It contains the contents of all the screens printed).
7. :RENAME EPOCLIST, <new name> If not renamed, the next time the application is
run, the output will be APPENDED to the existing file.
8. :RUN TDP.PUB.SYS
9. Execute the following command:
FINAL from <new name> to *HP2680
or “FINAL from <new name> to *HP2688”.
These final two steps could be specified in a job stream. The screens will be printed out
one per page.
Merging Screens with a TDP File
Instead of printing the screens out separately, you may want to include them into an
existing TDP file. A special file, VEPOCUSE, is provided to facilitate the user in this task.
The VSETUP file must be included as one of the first statements of your TDP document file.
It will set up the reference to the correct environment file necessary for printing the
screens in EPOCLIST.
NOTE
If you want to use a difference environment file, you must include the font
definitions from VENV80 or VENV88 in your environment file. (Refer to the
fonts listed in the Limitations section).