Forces the report print to stop. The page footer and the "end of document" block are printed.
If the report is printed in the report viewer, the preview window is not closed again.
Remark: This function can only be used in the reports created with the report editor.
: A specific configuration is required to use this function in Linux. For more details, see Print in Linux
// End of print if the text file is not found
// Identifier of text file
gfnFileID is int = 0
sTextFile is string = fCurrentDir() + "\Reports\Product.txt"
// Open the text file
gfnFileID = fOpen(sTextFile, foRead)
IF gfnFileID = -1 THEN
iEndReport() // Stop printing the report
// End of print forced when printing a record
IF MySelf..Source.CustomerName = "SMITH" THEN
Business / UI classification: Neutral code