| Command group | Flag affected | Reversible | Execute on client | Platform(s) |
| Reports and Printing | YES | NO | NO | All |
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.
# Print report record by record
Set main filefAccounts
Set report namerMyReport
Send to screen OBSOLETE COMMAND
Prepare for print
Find firstonfAccounts.Code
While flag truePrint recordNext
End WhileEnd print
# Alternatively, you can end the print using notation
Do$ireports.rMyReport.$endprint()