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

680 AppendixL
A Programmer’s Guide to VPLUS
VPRINTSCREEN Intrinsic
VSETUP This is a TDP “include” file which selects and sets up the proper
environment for the printer selected. This file should be modified so the
references to VENV80 and VENV88 are properly qualified by the
GROUP.ACCOUNT they reside in. If the document you are printing resides
in a separate group and account from VSETUP, then a file equation must be
issued to reference VSETUP. This also applies if the user renames the
VSETUP file to a local name. In either case a file equation must be issued,
for example:
:FILE VSETUP = VSETUP.MYGROUP.MYACCT -OR- :FILE VSETUP =
MYSETUP.MYGROUP.MYACCT
VEPOCUSE This is a TDP “use” file, potentially needed when merging text with
screens.
VPRTDEMO This is a demo program which demonstrates the use of the VPRINTSCREEN
intrinsic. It can be run in normal or documentation mode. Following are
instructions for running the demo.
Running VPRTDEMO
1. :PURGE (or :RENAME) EPOCLIST
2. :SETJCW VPRINTJCW = 1
3. :RUN VPRTDEMO.
4. Accessing the PRINT function wherever it’s available to save screen contents in
EPOCLIST. Remember, all the data entered by the user will also be save as part of the
screen.
5. Exit VPRTDEMO.
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.
If you answered “Y” to the automatic print prompt, the forms will be displayed and printed
in alphabetic order. At completion, you will have EPOCLIST. If the VPRINTJCW is not set,
then a FORMLIST file will be created.
If manual print mode was selected, then the first form in alphabetic order is displayed. If
local function keys were defined for the form, then these keys will be displayed.
However, the action performed by VPRTDEMO when a key is selected is defined below: