End print

Command groupFlag affectedReversibleExecute on clientPlatform(s)
Reports and PrintingYESNONOAll

Syntax

End print
 
instance-name

Description

This command terminates the specified report and prints the totals section. If you omit the report instance name the End print command terminates the most recently started report instance. The flag is cleared if no report instances exist.

End print cancels the Prepare for print mode. You must include it after a Prepare for print command even if a totals section is not required.

You can print running totals of fields in the Record section by including the same fields in the Totals section of the report. Provided you choose the Totaled property for the field in the Record section, Omnis automatically maintains a running total.

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
 

 
# Alternatively, you can end the print using notation

Do
 
$ireports
.
rMyReport
.
$endprint
()