Products Downloads


French version


 

 

ADELIA

VADELIA

      

      

      

(B)

(B) (C/S)

 

 

 

 

Warning: The description below does not apply to VADELIA batch programs with reports of Crystal Reports kind.

 

All

 

PRINT_VIEWS Format ReportLayout Option

 

ReportLayout

ReportLayout | None

Option

*FORCE | None

 

This instruction allows the printing of the printer file format Format corresponding to the report layout ReportLayout, after first loading the format fields with the file fields. The loading follows the data flow processing defined in the layout.

Loading can concern one or more files referenced in the data flow of the format to be printed.

The layout code ReportLayout is optional; if not indicated, the system assumes that the layout having the model name is to be used.

 

If the PRINT instruction is issued without the *FORCE option, the instruction loads the format fields with file fields if the last file read was successful; else the corresponding format fields are reset to blank or zero.

 

If the PRINT instruction is issued with the *FORCE option, the instruction always loads the format fields with file fields.

 

In case a default value has been defined for a layout field, two possible cases can occur:

  • If the field participates in the data flow and the reading preceding the PRINT_VIEWS instruction without the *FORCE option is unsuccessful, the default values are inserted in the layout fields.

  • If the field does not participate in the data flow, the PRINT_VIEWS instruction inserts the default values into the layout fields.

If there is no field to present, the PRINT_VIEWS instruction corresponds to the PRINT instruction.

 

* Batch program to print orders

READ ORDERS

DO_WHILE ORDERS EXISTS

TOTAL_AMOUNT = TOTAL_AMOUNT + LINE_AMOUNT

CHAIN COMPANIES

CHAIN CUSTOMERS

CHAIN ITEMS

PRINT_VIEWS ORDER_LINE_FMT

READ ORDERS

REDO

*

* PRINT_VIEWS ORDER_LINE_FMT in this case is equivalent to:

*

PRESENT ORDERS

*

PRESENT COMPANIES

*

PRESENT CUSTOMERS

*

PRESENT ITEMS

*

PRINT ORDER_LINE_FMT

 

↑ Top of page


  • Aucune étiquette