|
VADELIA |
|
WADELIA |
|
|
(B) (C/S) |
|
(B) (C/S) |
|
Warning: The description below does not apply to VADELIA batch programs with reports of Adelia kind.
Applicable paragraph
All
Syntax
PRINT_VIEWS ReportLayout Subreport Option
ReportLayout |
Þ |
ReportLayout | None |
Subreport |
Þ |
*SUBREPORT(SubreportName) | None |
Option |
Þ |
*FORCE | None |
Note: Uppercase and lowercase characters are taken into account in SubreportName.
Description
This instruction can be used to insert a new record in a pseudo-database, which will feed the report when it is printed. This record is made up of current values taken from the layout fields placed in the main report or in a subreport SubreportName of the main report, if the *SUBREPORT parameter is used.
The layout code is optional. If it is not given, the system will assume that the layout is the one bearing the name of the model.
If the PRINT instruction is issued without the *FORCE option, the instruction loads the layout fields with file fields if the last file read was successful; else the corresponding layout fields are reset to blank or zero.
If the PRINT instruction is issued with the *FORCE option, the instruction always loads the layout fields with file fields.
Example
* Batch for printing orders
READ ORDERS
DO_WHILE ORDERS EXISTS
CHAIN COMPANIES
CHAIN CUSTOMERS
CHAIN ITEMS
PRINT_VIEWS
READ ORDERS
REDO
*
*Here PRINT_VIEWS is equivalent to:
* |
PRESENT ORDERS |
* |
PRESENT COMPANIES |
* |
PRESENT CUSTOMERS |
* |
PRESENT ITEMS |
* |