Command group Flag affected Reversible Execute on client Platform(s)
Reports and Printing YES NO NO All

Syntax

Print report from disk {file-name}

Description

This command prints the contents of the specified disk file to the current report destination. The specified file must contain output generated using the Disk printing device.

Example

# Print the report rMyReport to disk and then print
# the report from disk to screen
Calculate lFileName as con(sys(115),'myreport.rep')
Set report name rMyReport
Do $cdevice.$assign(kDevDisk)
Do $prefs.$reportfile.$assign(lFileName)
Print report
Close print or export file
Send to screen
Print report from disk {[lFileName]}