PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Forces the report print to stop. The page footer and the "end of document" block are printed.
Note: This function can only be used in the reports created with the report editor.
Example
// End of print if the text file is not found
GLOBAL
// Identifier of text file
gfnFileID is int = 0

LOCAL
sTextFile is string = fCurrentDir() + "\Reports\Product.txt"

// Open the text file
gfnFileID = fOpen(sTextFile, foRead)
IF gfnFileID = -1 THEN
Error(ErrorInfo())
iEndReport() // Stop printing the report
END
// End of print forced when printing a record
IF MySelf..Source.CustomerName = "SMITH" THEN
iEndReport()
END
Syntax
iEndReport()
Business / GUI classification : Neutral code
Component : wd250etat.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment