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.

 

Section for use

All

 

Syntax

PRINT Format ReportLayout

 

ReportLayout

ReportLayout | None

 

Description

This instruction enables the printing of a printer file format Format corresponding to the report layout ReportLayout .

 

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

 

Important notes:

    • The guide word of the format to be printed must be specified.

    • This instruction does not move file fields to layout fields, as it is the case for PRINT_VIEWS.

 

Example

* Batch program to print orders per customer (break on customer code)

*

PRINT GENERAL_HEADER

READ ORDER

DO_WHILE ORDER EXISTS

PROCESS_BRK CUSTOMER_BK

CUSTOMER_AMOUNT = CUSTOMER_AMOUNT + LINE_AMOUNT

PRINT_VIEWS ORDER_LINE

READ ORDER

PROCESS_TOTAL CUSTOMER_BK

REDO

* Heading procedure

*

BREAK_PROCEDURE CUSTOMER_BK

CHAIN CUSTOMERS

PRINT_VIEWS CUSTOMER_FMT

CUSTOMER_AMOUNT = 0

END_PROCESSING

* Total procedure

*

TOTAL_PROCEDURE CUSTOMER_BK

PRINT TOTAL_CUST

END_PROCESSING

* Change_page procedure (overflow)

*

CHANGE_PAGE

PRINT CUSTOMER_FMT

END_PROCESSING

 

↑ Top of page

  • Aucune étiquette