Print record

Command groupFlag affectedReversibleExecute on clientPlatform(s)
Reports and PrintingYESNONOAll

Syntax

Print record
 
instance-name

Description

This command prints a single record of the specified report instance. You use it when printing a report on a record-by-record basis and usually within a loop. It provides greater control over the report generator than Print report. If you omit the report instance name Print record is applied to the most recently started report instance ($ireports.$first).

Each time Print record is encountered, a record section of the report is printed to the selected output using the data in the CRB. Any page heading, subtotal heading and subtotal sections before the record section are printed where necessary.

Subtotal sections are printed whenever the sort fields change value, provided that the fields entered in the Sort Fields dialog have Subtotals set to True.

The flag is cleared if:

These errors will not cause Omnis to execute a Quit all methods. If the flag is cleared, Omnis will not execute any further Print record commands until it encounters another Prepare for print.

Example

# Print report record by record

Set main file
 
fAccounts

Set report name
 
rMyReport

Send to screen OBSOLETE COMMAND
 

Prepare for print
 

Find first
 
on 
fAccounts
.
Code

While flag true
  
Print record
 

  
Next
End While
End print